Under the hood this prints the same as QualType::getAsString() but cuts out the middle-man when that string is sent to another raw_ostream.
Also cleaned up all the call sites where this occurs.
Paths
| Differential D123926
[clang] Add a raw_ostream operator<< overload for QualType ClosedPublic Authored by njames93 on Apr 18 2022, 3:04 AM.
Details Summary Under the hood this prints the same as QualType::getAsString() but cuts out the middle-man when that string is sent to another raw_ostream. Also cleaned up all the call sites where this occurs.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 19 2022, 10:50 AM Closed by commit rGcfb8169059c8: [clang] Add a raw_ostream operator<< overload for QualType (authored by njames93). · Explain WhyApr 20 2022, 2:09 PM This revision was automatically updated to reflect the committed changes. njames93 marked an inline comment as done.
Revision Contents
Diff 424021 clang/include/clang/AST/Type.h
clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
clang/lib/AST/RecordLayoutBuilder.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/AST/VTableBuilder.cpp
clang/lib/Analysis/AnalysisDeclContext.cpp
clang/lib/Analysis/CFG.cpp
clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
clang/lib/Sema/CodeCompleteConsumer.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp
clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
clang/lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
clang/lib/StaticAnalyzer/Core/DynamicType.cpp
clang/lib/StaticAnalyzer/Core/MemRegion.cpp
clang/lib/StaticAnalyzer/Core/SVals.cpp
clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
clang/unittests/AST/ASTTraverserTest.cpp
|
Cleaning up the declaration a bit, but the important change is not making QT a const ref (the type is small and meant to be passed by value cheaply).