2017-04-18 19 views
1

我無法理解從鐺格式的手冊以下文字:什麼是正確的「.clang格式」位置?

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

什麼是「stdin的當前目錄」是什麼意思?它是當前目錄還是stdin?

是否可以通過完整路徑指定.clang格式的位置?

回答

1

這是當前目錄。 並且沒有辦法設置.clang-format路徑。 clang-format只能從目錄中掃描,直到遇到文件。

相關問題