]> granicus.if.org Git - clang/commitdiff
Attempt to silence some defined but not used warnings.
authorEric Christopher <echristo@gmail.com>
Wed, 4 Sep 2013 06:06:06 +0000 (06:06 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 4 Sep 2013 06:06:06 +0000 (06:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189922 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/ASTMatchers/ASTMatchers.h

index cad9c404b464c8b68c2ca43dc0a6e053262b4715..2734aa2b36d863e665a21ca0a0cc008c3695a8e8 100644 (file)
@@ -1527,7 +1527,8 @@ AST_MATCHER_P(CXXRecordDecl, hasMethod, internal::Matcher<CXXMethodDecl>,
 /// ChildT must be an AST base type.
 ///
 /// Usable as: Any Matcher
-const internal::ArgumentAdaptingMatcherFunc<internal::HasMatcher> has = {};
+const internal::ArgumentAdaptingMatcherFunc<internal::HasMatcher>
+LLVM_ATTRIBUTE_UNUSED has = {};
 
 /// \brief Matches AST nodes that have descendant AST nodes that match the
 /// provided matcher.
@@ -1544,7 +1545,7 @@ const internal::ArgumentAdaptingMatcherFunc<internal::HasMatcher> has = {};
 ///
 /// Usable as: Any Matcher
 const internal::ArgumentAdaptingMatcherFunc<internal::HasDescendantMatcher>
-hasDescendant = {};
+LLVM_ATTRIBUTE_UNUSED hasDescendant = {};
 
 /// \brief Matches AST nodes that have child AST nodes that match the
 /// provided matcher.
@@ -1562,8 +1563,8 @@ hasDescendant = {};
 /// matches instead of only on the first one.
 ///
 /// Usable as: Any Matcher
-const internal::ArgumentAdaptingMatcherFunc<internal::ForEachMatcher> forEach =
-    {};
+const internal::ArgumentAdaptingMatcherFunc<internal::ForEachMatcher>
+LLVM_ATTRIBUTE_UNUSED forEach = {};
 
 /// \brief Matches AST nodes that have descendant AST nodes that match the
 /// provided matcher.
@@ -1590,7 +1591,7 @@ const internal::ArgumentAdaptingMatcherFunc<internal::ForEachMatcher> forEach =
 ///
 /// Usable as: Any Matcher
 const internal::ArgumentAdaptingMatcherFunc<internal::ForEachDescendantMatcher>
-forEachDescendant = {};
+LLVM_ATTRIBUTE_UNUSED forEachDescendant = {};
 
 /// \brief Matches if the node or any descendant matches.
 ///