diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:37:38 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | 808b17b1206dd70c7fbd676e8c24181cde537954 (patch) | |
tree | e20da218e1f9d702f4ff76fac9595740d375c3ed /Source/cmListFileCache.cxx | |
parent | 4470eb5179d6ccbe5e31cec758546e820752f2d8 (diff) | |
download | CMake-808b17b1206dd70c7fbd676e8c24181cde537954.zip CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.gz CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.bz2 |
clang-tidy: fix `readability-make-member-function-const` warnings
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 36a1372..1464a14 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -30,7 +30,7 @@ struct cmListFileParser bool ParseFunction(const char* name, long line); bool AddArgument(cmListFileLexer_Token* token, cmListFileArgument::Delimiter delim); - cm::optional<cmListFileContext> CheckNesting(); + cm::optional<cmListFileContext> CheckNesting() const; cmListFile* ListFile; cmListFileBacktrace Backtrace; cmMessenger* Messenger; @@ -352,7 +352,7 @@ bool TopIs(std::vector<NestingState>& stack, NestingStateEnum state) } } -cm::optional<cmListFileContext> cmListFileParser::CheckNesting() +cm::optional<cmListFileContext> cmListFileParser::CheckNesting() const { std::vector<NestingState> stack; |