When an error occurs while building a module on demand, provide "While
building module 'Foo' imported from..." notes (the same we we provide "In file included from..." notes) in the diagnostic, so that we know how this module got included in the first place. This is part of <rdar://problem/12696425>. llvm-svn: 169021
Showing
- clang/include/clang/Basic/SourceManager.h 31 additions, 0 deletionsclang/include/clang/Basic/SourceManager.h
- clang/include/clang/Frontend/DiagnosticRenderer.h 10 additions, 2 deletionsclang/include/clang/Frontend/DiagnosticRenderer.h
- clang/include/clang/Frontend/TextDiagnostic.h 4 additions, 0 deletionsclang/include/clang/Frontend/TextDiagnostic.h
- clang/include/clang/Lex/PreprocessorOptions.h 1 addition, 8 deletionsclang/include/clang/Lex/PreprocessorOptions.h
- clang/lib/Frontend/CompilerInstance.cpp 25 additions, 14 deletionsclang/lib/Frontend/CompilerInstance.cpp
- clang/lib/Frontend/DiagnosticRenderer.cpp 32 additions, 1 deletionclang/lib/Frontend/DiagnosticRenderer.cpp
- clang/lib/Frontend/TextDiagnostic.cpp 11 additions, 0 deletionsclang/lib/Frontend/TextDiagnostic.cpp
- clang/test/Modules/build-fail-notes.m 12 additions, 0 deletionsclang/test/Modules/build-fail-notes.m
- clang/test/Modules/cycles.c 4 additions, 3 deletionsclang/test/Modules/cycles.c
- clang/test/Modules/epic-fail.m 2 additions, 0 deletionsclang/test/Modules/epic-fail.m
Loading
Please register or sign in to comment