From 09e3c5f7eb4326ec41fcaeb50f62e261072e8222 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 3 Jan 2014 20:10:54 +0000 Subject: Refactored Builtin::Context::isPrintfLike and isScanfLike into a helper function. The implementations are identical, except for the format arguments being searched for. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198446 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Builtins.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/clang/Basic/Builtins.h') diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index 9756f21a1c..fd8fd422b1 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -177,6 +177,10 @@ private: /// \brief Is this builtin supported according to the given language options? bool BuiltinIsSupported(const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts); + + /// \brief Helper function for isPrintfLike and isScanfLike. + bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg, + const char *Fmt) const; }; } -- cgit v1.2.3