[clang-tools-extra] r371194 - [clangd] Use override keyword to override the base class method, NFC
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 03:24:39 PDT 2019
Author: hokein
Date: Fri Sep 6 03:24:39 2019
New Revision: 371194
URL: http://llvm.org/viewvc/llvm-project?rev=371194&view=rev
Log:
[clangd] Use override keyword to override the base class method, NFC
Modified:
clang-tools-extra/trunk/clangd/ParsedAST.cpp
Modified: clang-tools-extra/trunk/clangd/ParsedAST.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ParsedAST.cpp?rev=371194&r1=371193&r2=371194&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ParsedAST.cpp (original)
+++ clang-tools-extra/trunk/clangd/ParsedAST.cpp Fri Sep 6 03:24:39 2019
@@ -110,9 +110,8 @@ public:
std::vector<SourceLocation> &MainFileMacroLocs)
: SM(SM), MainFileMacroLocs(MainFileMacroLocs) {}
- virtual void MacroExpands(const Token &MacroNameTok,
- const MacroDefinition &MD, SourceRange Range,
- const MacroArgs *Args) {
+ void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD,
+ SourceRange Range, const MacroArgs *Args) override {
SourceLocation L = MacroNameTok.getLocation();
if (!L.isMacroID() && isInsideMainFile(L, SM))
MainFileMacroLocs.push_back(L);
More information about the cfe-commits
mailing list