llvm-project/clang/lib
Manuel Klimek 52d0fd8961 Fixes parsing of hash tokens in the middle of a line.
To parse # correctly, we need to know whether it is the first token in a
line - we can deduct this either from the whitespace or seeing that the
token is the first in the file - we already calculate this information.
This patch moves the identification of the first token into the
getNextToken method and stores it inside the FormatToken, so the
UnwrappedLineParser can stay independent of the SourceManager.

llvm-svn: 171640
2013-01-05 22:56:06 +00:00
..
ARCMigrate Update CMakeLists.txt 2013-01-04 19:04:47 +00:00
AST Assert that redeclarations have the same linkage. 2013-01-05 01:28:37 +00:00
ASTMatchers Implements multiple parents in the parent map. 2012-12-06 14:42:48 +00:00
Analysis s/CPlusPlus0x/CPlusPlus11/g 2013-01-02 11:42:31 +00:00
Basic [mips] Fix data layout string. Add 64 to the list of native integer widths 2013-01-05 02:04:34 +00:00
CodeGen PR14573: Unnamed parameters in debug info, Part 2 2013-01-05 20:03:07 +00:00
Driver Silence some warnings and allow passing down some feature flags to the linker. 2012-12-31 22:41:36 +00:00
Edit EditedSource.cpp: Appease msvc, to add <cctype>. 2012-12-21 00:21:02 +00:00
Format Fixes parsing of hash tokens in the middle of a line. 2013-01-05 22:56:06 +00:00
Frontend Remove -Wmodule-build; it was a dumb idea anyway. <rdar://problem/12957525> 2013-01-04 18:22:19 +00:00
FrontendTool Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00
Headers Code cleanup: Remove trailing whitespace in unwind.h. 2012-11-14 06:33:58 +00:00
Lex realpath'ify the mapping from header includes to module imports. 2013-01-04 19:44:26 +00:00
Parse s/CXX0X/CXX11/g, except for __GNU_EXPERIMENTAL_CXX0X__, and update a few nearby 'C++0x' comments. 2013-01-02 12:01:23 +00:00
Rewrite Fix indent and remove parameter with a matching default value. 2013-01-04 22:40:33 +00:00
Sema Fixes a breakage in dejagnu++ test suite where it included 2013-01-05 21:54:55 +00:00
Serialization Move the common source locations of CastStmt & DefaultStmt into their base class, SwitchCase. 2013-01-04 18:30:04 +00:00
StaticAnalyzer NSErrorChecker: remove quoting the parameter name in the diagnostic until we actually include it's name. 2013-01-04 19:04:40 +00:00
Tooling Style and Doc fix for CommonOptionsParser 2012-12-14 18:58:25 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00