[PATCH] D141625: [DeclContext] Sort the Decls before adding into DeclContext
    Steven Wu via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Feb  2 12:45:05 PST 2023
    
    
  
steven_wu added a comment.
I don't think it is feasible with current tool to write a test that check semantically the order of decls in clang module. (Let me know if that was wrong). The current test already unfortunately relies on the module layout assuming `op13` is the field for anonymous declaration number. Adding more dependency on the exact layout of the clang module will make the test really fragile to any clang AST change.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141625/new/
https://reviews.llvm.org/D141625
    
    
More information about the cfe-commits
mailing list