]> granicus.if.org Git - clang/commit
Fix some handling of AST nodes with diagnostics.
authorRichard Trieu <rtrieu@google.com>
Wed, 28 Mar 2018 04:16:13 +0000 (04:16 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 28 Mar 2018 04:16:13 +0000 (04:16 +0000)
commitcab3257e74b0f7c1c6255c8e9f10203d70b37b14
tree3f06cf1ad9037da04588640d9652d29e4a63e401
parent7d573824c60fe0523e6a84526343d8065234ac5e
Fix some handling of AST nodes with diagnostics.

The diagnostic system for Clang can already handle many AST nodes.  Instead
of converting them to strings first, just hand the AST node directly to
the diagnostic system and let it handle the output.  Minor changes in some
diagnostic output.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328688 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Lex/PPMacroExpansion.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/AnalysisBasedWarnings.cpp
lib/Sema/SemaCUDA.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/TreeTransform.h
test/Preprocessor/has_include.c
test/Sema/warn-duplicate-enum.c
test/SemaCUDA/function-overload.cu
test/SemaCUDA/kernel-call.cu
test/SemaCXX/ms-interface.cpp
test/SemaCXX/typo-correction.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp
test/SemaObjC/comptypes-legal.m
test/SemaObjC/protocol-expr-neg-1.m
test/SemaTemplate/warn-thread-safety-analysis.cpp