[clang] [clang] Optimize castToDeclContext for 2% improvement in build times (PR #76825)
    Vlad Serebrennikov via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Jan  3 23:22:25 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) {
----------------
Endilll wrote:
Why `const std::string &` instead of `std::string_view`?
https://github.com/llvm/llvm-project/pull/76825
    
    
More information about the cfe-commits
mailing list