[all-commits] [llvm/llvm-project] ee5519: [NFC] Refactor DiagnosticBuilder and PartialDiagno...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Sep 16 14:36:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ee5519d323571c4a9a7d92cb817023c9b95334cd
      https://github.com/llvm/llvm-project/commit/ee5519d323571c4a9a7d92cb817023c9b95334cd
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/Attr.h
    M clang/include/clang/AST/CanonicalType.h
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/AST/DeclCXX.h
    M clang/include/clang/AST/DeclarationName.h
    M clang/include/clang/AST/NestedNameSpecifier.h
    M clang/include/clang/AST/TemplateBase.h
    M clang/include/clang/AST/TemplateName.h
    M clang/include/clang/AST/Type.h
    M clang/include/clang/Basic/Diagnostic.h
    M clang/include/clang/Basic/PartialDiagnostic.h
    M clang/include/clang/Sema/Ownership.h
    M clang/include/clang/Sema/ParsedAttr.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/AST/TemplateBase.cpp
    M clang/lib/AST/TemplateName.cpp
    M clang/lib/Basic/Diagnostic.cpp

  Log Message:
  -----------
  [NFC] Refactor DiagnosticBuilder and PartialDiagnostic

PartialDiagnostic misses some functions compared to DiagnosticBuilder.

This patch refactors DiagnosticBuilder and PartialDiagnostic, extracts
the common functionality so that the streaming << operators are
shared.

Differential Revision: https://reviews.llvm.org/D84362




More information about the All-commits mailing list