llvm-project/clang/lib
Martin Probst e71b4cbdd1 clang-format: [JS] fix template string width counting.
Summary:
Simply looking at the final text greatly simplifies the algorithm and also
fixes a reported issue. This requires duplicating the "actual encoding width"
logic, but that seems cleaner than the column acrobatics before.

Reviewers: djasper, bkramer

Subscribers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D20208

llvm-svn: 269747
2016-05-17 06:29:29 +00:00
..
ARCMigrate Fix some Clang-tidy readability-redundant-control-flow warnings; other minor fixes. 2016-02-10 19:11:58 +00:00
AST Avoid O(n^2) string analysis when handling GNU __asm__ statements. 2016-05-16 22:52:23 +00:00
ASTMatchers Add the hasDynamicExceptionSpec() AST matcher to match function declarations that have a dynamic exception specification. 2016-05-16 16:49:01 +00:00
Analysis Enable support for __float128 in Clang and enable it on pertinent platforms 2016-05-09 08:52:33 +00:00
Basic [PS4] Change the names of some "environmental" things to what our 2016-05-16 17:22:25 +00:00
CodeGen Revert "Reapply^2 "[ProfileData] (clang) Use Error in InstrProf and Coverage, NFC"" 2016-05-16 21:04:19 +00:00
Driver [PS4] Change the names of some "environmental" things to what our 2016-05-16 17:22:25 +00:00
Edit Remove autoconf support 2016-01-26 21:30:40 +00:00
Format clang-format: [JS] fix template string width counting. 2016-05-17 06:29:29 +00:00
Frontend Revert "Reapply^2 "[ProfileData] (clang) Use Error in InstrProf and Coverage, NFC"" 2016-05-16 21:04:19 +00:00
FrontendTool Make it possible for AST plugins to enable themselves by default 2016-03-15 12:51:40 +00:00
Headers [AVX512] Add parentheses around macro arguments in AVX512F intrinsics. Remove leading underscores from macro argument names. Add explicit typecasts to all macro arguments and return values. And finally reformat after all the adjustments. 2016-05-17 04:41:50 +00:00
Index Enable support for __float128 in Clang and enable it on pertinent platforms 2016-05-09 08:52:33 +00:00
Lex Modules: set SystemHeader to true if we are building a system module. 2016-05-17 02:15:12 +00:00
Parse [OpenCL] Add supported OpenCL extensions to target info. 2016-05-16 17:06:34 +00:00
Rewrite Remove use of builtin comma operator. 2016-02-18 22:34:54 +00:00
Sema [OpenCL] Add supported OpenCL extensions to target info. 2016-05-16 17:06:34 +00:00
Serialization Update identifiers as needed when loading macros from serialized ASTs. 2016-05-14 06:24:14 +00:00
StaticAnalyzer [analyzer] Fix crash in ObjCGenericsChecker 2016-05-11 20:28:41 +00:00
Tooling [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00