[PATCH] [extra] pptrace - preprocessor tracing and testing tool

Sean Silva silvas at purdue.edu
Mon Oct 28 11:51:34 PDT 2013


On Mon, Oct 28, 2013 at 12:52 PM, John Thompson <
john.thompson.jtsoftware at gmail.com> wrote:

>   Sean,
>
>   I revised per your comments, except for the one about -- in the command
> line, as I don't understand.  I think you can use either "-' or "--" for
> options.  I don't know about using "--" to separate the compiler options.
>

Most command line tools use a single argument containing `--` to indicate
"everything after this is a positional argument". E.g., grep takes a `-i`
option which asks it to be case insensitive. But what do you do if you want
your pattern to be `-i`? Without `--`, grep would think that it was an
option instead of the actual pattern to be searched for, so this is the
command line you use to get the desired result:

grep -- -i foo.txt

-- Sean Silva


>
>   Kim,
>
>   What I usually do in the case of strange build errors on Windows is
> update cmake, delete the CMakeCache.txt file, rerun the initial camke
> command line ("cmake -G "Visual Studio 10" -DCLANG_BUILD_EXAMPLES=ON ." in
> my case), run clean in Visual Studio, then a build.  I just did this, but
> didn't see any error, so I'm not sure what to do.
>
>   -John
>
> Hi silvas, kimgr,
>
> http://llvm-reviews.chandlerc.com/D2020
>
> CHANGE SINCE LAST DIFF
>   http://llvm-reviews.chandlerc.com/D2020?vs=5156&id=5196#toc
>
> Files:
>   test/pp-trace/pp-trace-macro.cpp
>   pp-trace/PPTrace.cpp
>   pp-trace/PPCallbacksTracker.h
>   pp-trace/PPCallbacksTracker.cpp
>   pp-trace/CMakeLists.txt
>   pp-trace/Makefile
>   CMakeLists.txt
>   Makefile
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131028/2b356c21/attachment.html>


More information about the cfe-commits mailing list