[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)
Pol M via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 01:00:33 PST 2024
================
@@ -196,8 +227,20 @@ void ClangASTNodesEmitter::run(raw_ostream &OS) {
}
void clang::EmitClangASTNodes(RecordKeeper &RK, raw_ostream &OS,
- const std::string &N, const std::string &S) {
- ClangASTNodesEmitter(RK, N, S).run(OS);
+ const std::string &N, const std::string &S,
+ const std::string &PriorizeIfSubclassOf) {
----------------
Destroyerrrocket wrote:
Conformity with surrounding code. I code like I see to not introduce another style. I can switch to std::string_view if you wish so!
https://github.com/llvm/llvm-project/pull/76825
More information about the cfe-commits
mailing list