r189922 - Attempt to silence some defined but not used warnings.

Eric Christopher echristo at gmail.com
Tue Sep 3 23:06:06 PDT 2013


Author: echristo
Date: Wed Sep  4 01:06:06 2013
New Revision: 189922

URL: http://llvm.org/viewvc/llvm-project?rev=189922&view=rev
Log:
Attempt to silence some defined but not used warnings.

Modified:
    cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h

Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h?rev=189922&r1=189921&r2=189922&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Wed Sep  4 01:06:06 2013
@@ -1527,7 +1527,8 @@ AST_MATCHER_P(CXXRecordDecl, hasMethod,
 /// 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::ArgumentAdaptingMatcherF
 ///
 /// 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::ArgumentAdaptingMatcherF
 ///
 /// Usable as: Any Matcher
 const internal::ArgumentAdaptingMatcherFunc<internal::ForEachDescendantMatcher>
-forEachDescendant = {};
+LLVM_ATTRIBUTE_UNUSED forEachDescendant = {};
 
 /// \brief Matches if the node or any descendant matches.
 ///





More information about the cfe-commits mailing list