summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp
diff options
context:
space:
mode:
authorDaniel Marjamaki <daniel.marjamaki@evidente.se>2015-06-29 12:18:11 +0000
committerDaniel Marjamaki <daniel.marjamaki@evidente.se>2015-06-29 12:18:11 +0000
commit4a38b0b493643a5db66bd7c6eaf2a42f1a9f67bd (patch)
treec9c6e0519b16c9c510462c0cbc94d375e30430ce /clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp
parent4002ce483477c9bb099d3e2bcf0ea3f392b57ad4 (diff)
downloadbcm5719-llvm-4a38b0b493643a5db66bd7c6eaf2a42f1a9f67bd.tar.gz
bcm5719-llvm-4a38b0b493643a5db66bd7c6eaf2a42f1a9f67bd.zip
[clang-tidy] Fix false positives in the macro parentheses checker
Summary: There were false positives in C++ code where macro argument was a type. Reviewers: alexfh Differential Revision: http://reviews.llvm.org/D10801 llvm-svn: 240938
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp b/clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp
index 0c4338f7a55..d298343f990 100644
--- a/clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp
+++ b/clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp
@@ -32,6 +32,9 @@
#define GOOD20 void*
#define GOOD21(a) case Fred::a:
#define GOOD22(a) if (verbose) return a;
+#define GOOD23(type) (type::Field)
+#define GOOD24(t) std::set<t> s
+#define GOOD25(t) std::set<t,t,t> s
// These are allowed for now..
#define MAYBE1 *12.34
OpenPOWER on IntegriCloud