We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be997ce commit 095f086Copy full SHA for 095f086
clang/docs/JSONCompilationDatabase.rst
@@ -94,6 +94,18 @@ to parse C++ code in the source tree.
94
95
Alternatives
96
============
97
-For simple projects, Clang tools also recognize a compile_flags.txt file.
98
-This should contain one flag per line. The same flags will be used to compile
99
-any file.
+For simple projects, Clang tools also recognize a ``compile_flags.txt`` file.
+This should contain one argument per line. The same flags will be used to
+compile any file.
100
+
101
+Example:
102
103
+::
104
105
+ -xc++
106
+ -I
107
+ libwidget/include/
108
109
+Here ``-I libwidget/include`` is two arguments, and so becomes two lines.
110
+Paths are relative to the directory containing ``compile_flags.txt``.
111
0 commit comments