]> granicus.if.org Git - clang/commit
None of these attributes require FunctionTemplate to be explicitly listed as part...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 20 May 2014 14:10:53 +0000 (14:10 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 20 May 2014 14:10:53 +0000 (14:10 +0000)
commit8a04753c6cdec5c45f84d38eaf33f9b6121b7d14
tree9ba793d942261c192b1a39136d70fba42cae5073
parentb46eb10258c61d1253c6bdf64836ebbb73877d19
None of these attributes require FunctionTemplate to be explicitly listed as part of their subject definition. FunctionTemplateDecls are not what the attribute appertains to in the first place -- it attaches to the underlying FunctionDecl.

The attribute emitter was using FunctionTemplate to map the diagnostic to "functions or methods", but that isn't a particularly clear diagnostic in these cases anyway (since they do not apply to ObjC methods). Updated the attribute emitter to remove custom logic for FunctionTemplateDecl, and updated the test cases for the change in diagnostic wording.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209209 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
test/SemaCXX/attr-no-sanitize-address.cpp
test/SemaCXX/attr-no-sanitize-memory.cpp
test/SemaCXX/attr-no-sanitize-thread.cpp
test/SemaCXX/warn-thread-safety-parsing.cpp
utils/TableGen/ClangAttrEmitter.cpp