2017-04-18 19 views
1

私が打ち鳴らす形式のマニュアルから、次のテキストを理解することはできません。正しい ".clang-format"の場所は何ですか?

.clang-format file located in one of the parent 
directories of the source file (or current 
directory for stdin). 

「標準入力のためのカレントディレクトリ」とは何を意味するのでしょうか?それは現在のディレクトリかstdinか?

.clang形式の場所をフルパスで指定することはできますか?

答えて

1

現在のディレクトリです。 そして、.clang-formatパスを設定する方法はありません。 clang-formatは、ディレクトリからスキャンし、ファイルが見つかるまで上に移動します。

関連する問題