diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-03 20:10:54 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-03 20:10:54 +0000 |
commit | 09e3c5f7eb4326ec41fcaeb50f62e261072e8222 (patch) | |
tree | 675057208c33c3ad5c3e285aafb1353f137c18ad /include/clang/Basic/Builtins.h | |
parent | f33627927313714fbc80f53d507ae69bb8f2b16d (diff) |
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
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; }; } |