llvm-project/clang/lib/Frontend
Jordan Rose fb12a53d5d Don't crash when emitting fixits following Unicode characters.
This code is very sensitive to the difference between "columns" as printed
and "bytes" (SourceManager columns). All variables are now named explicitly
and our assumptions are (hopefully) documented as both comment and assertion.

Whether parseable fixits should use byte offsets or Unicode character counts
is pending discussion on the mailing list; currently the implementation uses
bytes (and has no problems on lines containing multibyte characters).
This has been added to the user manual.

<rdar://problem/11877454>

llvm-svn: 160319
2012-07-16 20:52:12 +00:00
..
ASTConsumers.cpp Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue 2011-11-18 00:26:59 +00:00
ASTMerge.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
ASTUnit.cpp Introduce a flag in SourceManager to treat non-system source files 2012-07-11 20:59:04 +00:00
CMakeLists.txt Implement AST classes for comments, a real parser for Doxygen comments and a 2012-07-06 00:28:32 +00:00
CacheTokens.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
ChainedDiagnosticConsumer.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
ChainedIncludesSource.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
CompilerInstance.cpp Add a new libclang completion API to get brief documentation comment that is 2012-07-02 17:35:10 +00:00
CompilerInvocation.cpp Add OpenCL metadata for kernel arg names. This output is controlled via a flag as noted in the OpenCL Spec. 2012-07-11 23:02:10 +00:00
CreateInvocationFromCommandLine.cpp [driver] When creating the compiler invocation out of command-line 2012-05-21 20:11:54 +00:00
DependencyFile.cpp Delete the depfile if we could not open a header file. We cannot 2011-11-21 00:01:14 +00:00
DependencyGraph.cpp Rename -dependency-graphviz to -dependencncy-dot 2012-02-02 23:45:13 +00:00
DiagnosticRenderer.cpp Move a few static functions from DiagnosticRenderer.cpp into SourceManager. 2012-06-18 20:12:05 +00:00
FrontendAction.cpp [libclang] Don't crash when saving a PCH from a prefix header 2012-06-08 05:48:06 +00:00
FrontendActions.cpp Documentation cleanup: escape # in a Doxygen comment. 2012-06-15 21:48:19 +00:00
FrontendOptions.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
HeaderIncludeGen.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
InitHeaderSearch.cpp Add -isystem-prefix and -ino-system-prefix arguments, which can be used to 2012-06-13 20:27:03 +00:00
InitPreprocessor.cpp Restructure how the driver communicates information about the 2012-06-20 06:18:46 +00:00
LangStandards.cpp Remove unnecessary default cases in switches over enums. 2012-01-17 02:30:50 +00:00
LayoutOverrideSource.cpp Revert Decl's iterators back to pointer value_type rather than reference value_type 2012-06-06 20:45:41 +00:00
LogDiagnosticPrinter.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
MultiplexConsumer.cpp Replace MarkVarRequired with a more generic 2012-03-08 15:51:03 +00:00
PrintPreprocessedOutput.cpp [-E] Emit a rewritten _Pragma on its own line. 2012-06-15 23:33:51 +00:00
SerializedDiagnosticPrinter.cpp Fix an assertion hit when the serialized diagnostics writer receive a diagnostic 2012-05-10 05:03:45 +00:00
TextDiagnostic.cpp Don't crash when emitting fixits following Unicode characters. 2012-07-16 20:52:12 +00:00
TextDiagnosticBuffer.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
TextDiagnosticPrinter.cpp Re-apply r159875 with fixes. 2012-07-07 05:53:30 +00:00
VerifyDiagnosticConsumer.cpp Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
Warnings.cpp Add template type diffing to Clang. This feature will provide a better 2012-06-26 18:18:47 +00:00