[clang-tools-extra] aa3e85a - [include-fixer] Add the missing optional header to the STL header list.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 6 01:35:30 PST 2023
Author: Haojian Wu
Date: 2023-03-06T10:34:53+01:00
New Revision: aa3e85a812a0d448ec8afd960ed4f17a4806261e
URL: https://github.com/llvm/llvm-project/commit/aa3e85a812a0d448ec8afd960ed4f17a4806261e
DIFF: https://github.com/llvm/llvm-project/commit/aa3e85a812a0d448ec8afd960ed4f17a4806261e.diff
LOG: [include-fixer] Add the missing optional header to the STL header list.
Added:
Modified:
clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp b/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
index 0d0bbd9f0555b..122d2df1f1398 100644
--- a/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
@@ -243,6 +243,7 @@ const HeaderMapCollector::RegexHeaderMap *getSTLPostfixHeaderMap() {
{"mutex$", "<mutex>"},
{"new$", "<new>"},
{"numeric$", "<numeric>"},
+ {"optional$", "<optional>"},
{"ostream$", "<ostream>"},
{"queue$", "<queue>"},
{"random$", "<random>"},
More information about the cfe-commits
mailing list