[all-commits] [llvm/llvm-project] e3713f: [clang-format] Avoid considering include directive...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Wed Jan 27 00:20:19 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3713f156b8cb65a2b74f150afb824ce1e2a2fab
      https://github.com/llvm/llvm-project/commit/e3713f156b8cb65a2b74f150afb824ce1e2a2fab
  Author: Marek Kurdej <marek.kurdej at gmail.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

  Changed paths:
    M clang/lib/Format/UnwrappedLineFormatter.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Avoid considering include directive as a template closer.

This fixes a bug [[ http://llvm.org/PR48891 | PR48891 ]] introduced in D93839 where:
```
#include <stdint.h>
namespace rep {}
```
got formatted as
```
#include <stdint.h>
namespace rep {
}
```

Reviewed By: MyDeveloperDay, leonardchan

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




More information about the All-commits mailing list