summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/for-range-examples.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-02-16 22:26:52 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-02-16 22:26:52 +0000
commit9c8d77794bae4af323898c7f22cc9c09391b9a47 (patch)
tree7de27e19fd411ce443461e363ff2ffe317d04790 /clang/test/SemaCXX/for-range-examples.cpp
parentc5764cbe4e18faebf23b58fd500b967a97b660c0 (diff)
downloadbcm5719-llvm-9c8d77794bae4af323898c7f22cc9c09391b9a47.tar.gz
bcm5719-llvm-9c8d77794bae4af323898c7f22cc9c09391b9a47.zip
Parse: return true from ParseCXX11AttributeArgs if an attribute was added
In the case that we diagnosed an invalid attribute due to missing or present arguments, we would return false, indicating to the caller that the parsing failed. However, we would have added the attribute in ParseAttributeArgsCommon (which may have been called indirectly through ParseGNUAttributeArgs). Returning true in this case ensures that a second copy of the attribute is not added. I haven't added a test case for this as the existing test will cover this with the next commit which diagnoses a C++14 attribute applied in C++11 mode. Rather than duplicating the existing test case, allow the tree to remain without a test between this and the next change. We would see double warnings in the [[deprecated()]] applied to a declaration in C++11 mode, which will cause an error in the cxx0x-attributes test. llvm-svn: 229446
Diffstat (limited to 'clang/test/SemaCXX/for-range-examples.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud