[PATCH] D30564: [clang-tidy] Format code around applied fixes
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 3 02:25:18 PST 2017
ioeric added inline comments.
================
Comment at: test/clang-tidy/readability-braces-around-statements-format.cpp:1
+// RUN: %check_clang_tidy %s readability-braces-around-statements %t -- -format --
+
----------------
alexfh wrote:
> malcolm.parsons wrote:
> > Will clang-tidy look for a .clang-format file?
> > Does this test rely on a .clang-format file being found / not found?
> Good question. No idea ;) Lemme check...
Yes, it will look for .clang-format file in the working directory and its parents. If there happens to be a .clang-format with different style, the test might fail. We might want to explicitly set the style or add a .clang-format file in the test directory.
https://reviews.llvm.org/D30564
More information about the cfe-commits
mailing list