From bb112521133fab7fec58d306a5ff2bc539e2b8d5 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Mon, 4 Jul 2016 13:34:11 +0000 Subject: [include-fixer] reduce stack size by changing RegexHeaderMap to use const char * pair. llvm-svn: 274501 --- clang-tools-extra/include-fixer/find-all-symbols/HeaderMapCollector.h | 3 +-- .../unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/include-fixer/find-all-symbols/HeaderMapCollector.h b/clang-tools-extra/include-fixer/find-all-symbols/HeaderMapCollector.h index ecbd25f8329..c8ba2a8944c 100644 --- a/clang-tools-extra/include-fixer/find-all-symbols/HeaderMapCollector.h +++ b/clang-tools-extra/include-fixer/find-all-symbols/HeaderMapCollector.h @@ -23,8 +23,7 @@ namespace find_all_symbols { class HeaderMapCollector { public: typedef llvm::StringMap HeaderMap; - typedef std::vector> - RegexHeaderMap; + typedef std::vector> RegexHeaderMap; HeaderMapCollector() : RegexHeaderMappingTable(nullptr) {} diff --git a/clang-tools-extra/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp b/clang-tools-extra/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp index c074b858840..baa5dca463f 100644 --- a/clang-tools-extra/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp +++ b/clang-tools-extra/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp @@ -74,7 +74,7 @@ public: std::string IncHeaderCode = "class IncHeaderClass {};"; HeaderMapCollector::RegexHeaderMap RegexMap = { - {R"(internal_.*\.h$)", TopHeader}, + {R"(internal_.*\.h$)", TopHeader.c_str()}, }; std::string InternalCode = -- cgit v1.2.3