[Frontend] Allow attaching an external sema source to compiler instance and extra...
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 16 Nov 2016 18:15:26 +0000 (18:15 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 16 Nov 2016 18:15:26 +0000 (18:15 +0000)
commit7de9969bb0853f3331a29825ae5a959515d59d87
tree2532c1bb348633d61d959ac9323d4034345d999a
parent4ce99d4d240b2d7b400e7a8bb70d6c02e52ddb42
[Frontend] Allow attaching an external sema source to compiler instance and extra diags to TypoCorrections

This can be used to append alternative typo corrections to an existing diag.
include-fixer can use it to suggest includes to be added.

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

llvm-svn: 287128
clang/include/clang/Frontend/CompilerInstance.h
clang/include/clang/Sema/TypoCorrection.h
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Sema/SemaLookup.cpp
clang/unittests/Frontend/FrontendActionTest.cpp