Author: Dmitri Gribenko
Date: 2020-03-13T11:49:23+01:00
New Revision: 2e77f0cf76be7c4b78784d6bb098e0c23d670ab0

URL: 
https://github.com/llvm/llvm-project/commit/2e77f0cf76be7c4b78784d6bb098e0c23d670ab0
DIFF: 
https://github.com/llvm/llvm-project/commit/2e77f0cf76be7c4b78784d6bb098e0c23d670ab0.diff

LOG: Added 'const' as suggested by ClangTidy llvm-qualified-auto

Added: 
    

Modified: 
    clang/unittests/AST/DeclTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/AST/DeclTest.cpp 
b/clang/unittests/AST/DeclTest.cpp
index bd16df8a4fd2..08b1fbb5eb8a 100644
--- a/clang/unittests/AST/DeclTest.cpp
+++ b/clang/unittests/AST/DeclTest.cpp
@@ -79,7 +79,7 @@ TEST(Decl, AsmLabelAttr) {
          "Expected target to have a global prefix");
   DiagnosticsEngine &Diags = AST->getDiagnostics();
 
-  auto *DeclS =
+  const auto *DeclS =
       selectFirst<CXXRecordDecl>("d", match(cxxRecordDecl().bind("d"), Ctx));
   NamedDecl *DeclF = *DeclS->method_begin();
   NamedDecl *DeclG = *(++DeclS->method_begin());


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to