[AST] Sort introspection results without instantiating other data
authorStephen Kelly <steveire@gmail.com>
Thu, 22 Apr 2021 11:53:52 +0000 (12:53 +0100)
committerStephen Kelly <steveire@gmail.com>
Fri, 23 Apr 2021 15:21:01 +0000 (16:21 +0100)
commit35918bcb6f507cb3d28f80ab4408125ba292400c
treea3478865880e5b61de49da83b32724ba1a148600
parent2f67267a93c87261414a4aa4c6cb9d20a489a0df
[AST] Sort introspection results without instantiating other data

Avoid string allocation in particular, but also avoid attempting to
impose any particular ordering based on formatted results.

Differential Revision: https://reviews.llvm.org/D101054
clang/lib/Tooling/NodeIntrospection.cpp