diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-07 18:43:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-07 18:43:49 +0000 |
commit | aa8f976111e75427fa41e0f84b78fe086ce0f4e6 (patch) | |
tree | 2c1aa2f2f279703f515f629b194b41726ffac72a /include/clang/Basic | |
parent | 843e934ba8c6ebc00d2f6969a50af7074597e8e3 (diff) |
Patch by Nuno Lopes:
Added more comments for code processing attribute "format".
Added more checks for corner cases, test cases, and warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticKinds.def | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 97310a1f0b..ffad46609f 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -562,6 +562,10 @@ DIAG(err_attribute_argument_out_of_bounds, ERROR, "'%0' attribute parameter %1 is out of bounds") DIAG(err_format_strftime_third_parameter, ERROR, "strftime format attribute requires 3rd parameter to be 0") +DIAG(err_format_attribute_requires_variadic, ERROR, + "format attribute requires variadic function") +DIAG(err_format_attribute_not_string, ERROR, + "format argument not a string type") DIAG(err_attribute_invalid_size, ERROR, "vector size not an integral multiple of component size") DIAG(err_attribute_zero_size, ERROR, |