Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
change-namespace/tool/ClangChangeNamespace.cpp | ||
---|---|---|
78 ↗ | (On Diff #89627) | Maybe consider create a command-line option for it? It will make the tool more pluggable IMO. |
Comment Actions
PTAL
change-namespace/tool/ClangChangeNamespace.cpp | ||
---|---|---|
78 ↗ | (On Diff #89627) | Good idea. Done. |
change-namespace/tool/ClangChangeNamespace.cpp | ||
---|---|---|
82 ↗ | (On Diff #89637) | Instead std::vector<std::string>, maybe std::vector<llvm::Regex> is better, with that we don't need to do transform stuff in ChangeNamespaceTool. |
test/change-namespace/Inputs/white-list.txt | ||
1 ↗ | (On Diff #89637) | As this is only one-line file, I'd create this file in whitelist lint test like echo XX > whitelist.txt to avoid adding a new file in test. |
unittests/change-namespace/ChangeNamespaceTests.cpp | ||
42 ↗ | (On Diff #89637) | /*WhiteListedSymbolPatterns*/{} is enough. |
Comment Actions
- Addressed comments.
change-namespace/tool/ClangChangeNamespace.cpp | ||
---|---|---|
82 ↗ | (On Diff #89637) | I'd like ChangeNamespaceTool to own the Regex vector and make sure it is not shared since Regex is not thread safe. |