llvm-project/clang/lib/Format
Martin Probst 103a7b5bbb clang-format: [JS] wrap and indent `goog.setTestOnly` calls.
Summary:
While `goog.setTestOnly` usually appears in the imports section of a file, it is
not actually an import, and also usually doesn't take long parameters (nor
namespaces as a parameter, it's a description/message that should be wrapped).

This fixes a regression where a `goog.setTestOnly` call nested in a function was
not wrapped.

Reviewers: djasper

Subscribers: klimek

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

llvm-svn: 312918
2017-09-11 15:22:52 +00:00
..
AffectedRangeManager.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
AffectedRangeManager.h removed redundant '#' 2016-04-28 07:52:06 +00:00
BreakableToken.cpp [clang-format] Emit absolute splits before lines for comments, try 2 2017-08-24 16:41:10 +00:00
BreakableToken.h [clang-format] Put '/**' and '*/' on own lines in jsdocs ending in comment pragmas 2017-08-09 09:42:32 +00:00
CMakeLists.txt [clang-format] Support sorting using declarations 2017-06-21 12:03:12 +00:00
ContinuationIndenter.cpp clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
ContinuationIndenter.h [clang-format] Refactor WhitespaceManager and friends 2017-01-31 11:25:01 +00:00
Encoding.h [Format] Remove dead code. 2016-12-19 21:10:50 +00:00
Format.cpp clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
FormatToken.cpp Recommit "Add _Float16 as a C/C++ source language type" 2017-09-08 15:15:00 +00:00
FormatToken.h [clang-format] Add support for C++17 structured bindings. 2017-09-07 14:28:32 +00:00
FormatTokenLexer.cpp clang-format: [JS] handle single lines comments ending in `\\`. 2017-08-08 14:52:42 +00:00
FormatTokenLexer.h [clang-format] Handle NSString literals by merging tokens. 2017-04-11 09:55:00 +00:00
NamespaceEndCommentsFixer.cpp [clang-format] Fix a clang-tidy warning, NFC 2017-06-27 14:07:45 +00:00
NamespaceEndCommentsFixer.h [clang-format] Add a NamespaceEndCommentsFixer 2017-02-27 13:28:36 +00:00
SortJavaScriptImports.cpp clang-format: [JS] support default imports. 2017-08-01 15:54:43 +00:00
SortJavaScriptImports.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.cpp Don't copy replacements in for-range loop. NFC. 2016-10-19 13:50:17 +00:00
TokenAnalyzer.h [Format] Remove dead code. 2016-12-19 21:10:50 +00:00
TokenAnnotator.cpp clang-format: [JS] wrap and indent `goog.setTestOnly` calls. 2017-09-11 15:22:52 +00:00
TokenAnnotator.h [clang-format] Add a NamespaceEndCommentsFixer 2017-02-27 13:28:36 +00:00
UnwrappedLineFormatter.cpp [clang-format] Fixed one-line if statement 2017-09-11 10:12:16 +00:00
UnwrappedLineFormatter.h [clang-format] Replace IncompleteFormat by a struct with Line 2017-04-21 14:35:20 +00:00
UnwrappedLineParser.cpp clang-format: Fix indentation of macros in include guards (after r312125). 2017-09-04 13:33:52 +00:00
UnwrappedLineParser.h clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
UsingDeclarationsSorter.cpp [clang-format] Support sorting using declarations 2017-06-21 12:03:12 +00:00
UsingDeclarationsSorter.h [clang-format] Support sorting using declarations 2017-06-21 12:03:12 +00:00
WhitespaceManager.cpp [Format] Invert nestingAndIndentLevel pair in WhitespaceManager used for 2017-08-25 19:14:53 +00:00
WhitespaceManager.h [Format] Invert nestingAndIndentLevel pair in WhitespaceManager used for 2017-08-25 19:14:53 +00:00