hanchenye-llvm-project/clang/unittests
Krasimir Georgiev 9163fe2aba [clang-format] Use number of unwrapped lines for short namespace
Summary:
This patch makes the namespace comment fixer use the number of unwrapped lines
that a namespace spans to detect it that namespace is short, thus not needing
end comments to be added.
This is needed to ensure clang-format is idempotent. Previously, a short namespace
was detected by the original source code lines. This has the effect of requiring two
runs for this example:
```
namespace { class A; }
```
after first run:
```
namespace {
class A;
}
```
after second run:
```
namespace {
class A;
} // namespace
```

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits, klimek

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

llvm-svn: 296736
2017-03-02 09:54:44 +00:00
..
AST Tracking exception specification source locations 2017-01-12 16:11:28 +00:00
ASTMatchers [gtest] The way EXPECT_TEST now works after upgrading gtest triggers an 2017-01-04 23:57:25 +00:00
Analysis CFGBuilder: Fix crash when visiting delete expression on dependent type 2016-12-05 11:33:19 +00:00
Basic shared_ptrify (from InclusiveRefCntPtr) HeaderSearchOptions 2017-01-06 01:04:46 +00:00
CodeGen
Driver Fix shared library build after r291938 by adding missing dependency on libOption 2017-01-13 19:47:55 +00:00
Format [clang-format] Use number of unwrapped lines for short namespace 2017-03-02 09:54:44 +00:00
Frontend Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
Lex shared_ptrify (from InclusiveRefCntPtr) HeaderSearchOptions 2017-01-06 01:04:46 +00:00
Rewrite
Sema
StaticAnalyzer Add a method to get the list of registered static analyzer checkers. 2016-11-08 07:23:32 +00:00
Tooling Introducing clang::tooling::AtomicChange for refactoring tools. 2017-03-01 13:14:01 +00:00
libclang
CMakeLists.txt