diff options
author | Brad King <brad.king@kitware.com> | 2018-05-24 13:56:16 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-24 13:56:23 (GMT) |
commit | 2f8230b05251aa498b47a883d471b1ebfd357e64 (patch) | |
tree | f09df6274eeb236f62b6a0bdd9a389c926c10bea /Source/cmListFileCache.h | |
parent | 2eb9852d7b74c45aa30c8a5db7e8469bad1eecd4 (diff) | |
parent | b1a05d6c762ceb6dbf47126a7ddcedadb45e02f5 (diff) | |
download | CMake-2f8230b05251aa498b47a883d471b1ebfd357e64.zip CMake-2f8230b05251aa498b47a883d471b1ebfd357e64.tar.gz CMake-2f8230b05251aa498b47a883d471b1ebfd357e64.tar.bz2 |
Merge topic 'revise-case-insensitive-command'
b1a05d6c76 Revise implementation of case-insensitive command names
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2024
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r-- | Source/cmListFileCache.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index 1f9e374..70f7166 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -23,11 +23,22 @@ class cmMessenger; struct cmCommandContext { - std::string Name; + struct cmCommandName + { + std::string Lower; + std::string Original; + cmCommandName() {} + cmCommandName(std::string const& name) { *this = name; } + cmCommandName& operator=(std::string const& name); + } Name; long Line; cmCommandContext() - : Name() - , Line(0) + : Line(0) + { + } + cmCommandContext(const char* name, int line) + : Name(name) + , Line(line) { } }; @@ -81,7 +92,7 @@ public: cmListFileContext lfc; lfc.FilePath = fileName; lfc.Line = lfcc.Line; - lfc.Name = lfcc.Name; + lfc.Name = lfcc.Name.Original; return lfc; } }; |