Skip to content

Commit de566e3

Browse files
committed
Make it clear that ^ adds argument adter compiler name.
1 parent f41f8ff commit de566e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7199,9 +7199,10 @@ static const char *GetStableCStr(llvm::StringSet<> &SavedStrings, StringRef S) {
71997199
///
72007200
/// '#': Silence information about the changes to the command line arguments.
72017201
///
7202-
/// '^': Add FOO as a new argument at the beginning of the command line.
7202+
/// '^FOO': Add FOO as a new argument at the beginning of the command line
7203+
/// right after the name of the compiler executable.
72037204
///
7204-
/// '+': Add FOO as a new argument at the end of the command line.
7205+
/// '+FOO': Add FOO as a new argument at the end of the command line.
72057206
///
72067207
/// 's/XXX/YYY/': Substitute the regular expression XXX with YYY in the command
72077208
/// line.

flang/docs/FlangDriver.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,12 @@ nvfortran defines `-fast` as
621621
The environment variable `FCC_OVERRIDE_OPTIONS` can be used to edit flang's
622622
command line arguments. The value of this variable is a space-separated list of
623623
edits to perform. The edits are applied in the order in which they appear in
624-
`FCC_OVERRIDE_OPTIONS`. Each edit should be one of the following forms:
624+
`FCC_OVERRIDE_OPTIONS`. Each edit should be one of the following form:
625625

626626
- `#`: Silence information about the changes to the command line arguments.
627627

628-
- `^FOO`: Add `FOO` as a new argument at the beginning of the command line.
628+
- `^FOO`: Add `FOO` as a new argument at the beginning of the command line right
629+
after the name of the compiler executable.
629630

630631
- `+FOO`: Add `FOO` as a new argument at the end of the command line.
631632

0 commit comments

Comments
 (0)