1. Apr 07, 2020
    • Reid Kleckner's avatar
      [AST] Remove DeclCXX.h dep on ASTContext.h · b36c19bc
      Reid Kleckner authored
      Saves only 36 includes of ASTContext.h and related headers.
      
      There are two deps on ASTContext.h:
      - C++ method overrides iterator types (TinyPtrVector)
      - getting LangOptions
      
      For #1, duplicate the iterator type, which is
      TinyPtrVector<>::const_iterator.
      
      For #2, add an out-of-line accessor to get the language options. Getting
      the ASTContext from a Decl is already an out of line method that loops
      over the parent DeclContexts, so if it is ever performance critical, the
      proper fix is to pass the context (or LangOpts) into the predicate in
      question.
      
      Other changes are just header fixups.
      b36c19bc
    • Yaxun (Sam) Liu's avatar
      Speed up deferred diagnostic emitter · 2c31aa2d
      Yaxun (Sam) Liu authored
      Move function emitDeferredDiags from Sema to DeferredDiagsEmitter since it
      is only used by DeferredDiagsEmitter.
      
      Also skip visited functions to avoid exponential compile time.
      
      Differential Revision: https://reviews.llvm.org/D77028
      2c31aa2d
  2. Apr 06, 2020
  3. Apr 07, 2020
  4. Apr 06, 2020