[clang] 1050560 - [clang][NFC] Add a missing 'override'

Logan Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 17:37:33 PDT 2020


Author: Logan Smith
Date: 2020-07-17T17:35:59-07:00
New Revision: 105056045d9ab0b1a49781a18129ada48893452e

URL: https://github.com/llvm/llvm-project/commit/105056045d9ab0b1a49781a18129ada48893452e
DIFF: https://github.com/llvm/llvm-project/commit/105056045d9ab0b1a49781a18129ada48893452e.diff

LOG: [clang][NFC] Add a missing 'override'

Added: 
    

Modified: 
    clang/unittests/CrossTU/CrossTranslationUnitTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp b/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
index 5495f27f5b32..4e6fbeee86a3 100644
--- a/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
+++ b/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
@@ -29,7 +29,7 @@ class CTUASTConsumer : public clang::ASTConsumer {
   explicit CTUASTConsumer(clang::CompilerInstance &CI, bool *Success)
       : CTU(CI), Success(Success) {}
 
-  void HandleTranslationUnit(ASTContext &Ctx) {
+  void HandleTranslationUnit(ASTContext &Ctx) override {
     auto FindFInTU = [](const TranslationUnitDecl *TU) {
       const FunctionDecl *FD = nullptr;
       for (const Decl *D : TU->decls()) {


        


More information about the cfe-commits mailing list