Dylan Noblesmith
f7ccbad5d9
Basic: import SmallString<> into clang namespace
...
(I was going to fix the TODO about DenseMap too, but
that would break self-host right now. See PR11922.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149799 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-05 02:13:05 +00:00
Douglas Gregor
bcf6a8025a
StringRef'ize clang::drive::Option::getName(), from Zach Wheeler!
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134418 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-05 16:56:25 +00:00
Nick Lewycky
3fdcc6fb12
Remove stray emacs mode markers in all these files that was causing emacs to
...
open them in fundamental-mode instead of c++-mode.
Also twiddle whitespace for consistency in ToolChains.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122646 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-31 17:31:54 +00:00
Daniel Dunbar
532c1ec307
Driver: Eliminate Arg subclasses, which are now unnecessary.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105762 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-09 22:31:08 +00:00
Daniel Dunbar
e375c4a02a
Driver: Keep the rendering style in the option, instead of as part of the Arg.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105761 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-09 22:31:04 +00:00
Daniel Dunbar
4465a776a5
Driver: Change Arg to just hold the values directly, instead of implicitly
...
deriving them from the Arg type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105760 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-09 22:31:00 +00:00
Daniel Dunbar
312a8b726e
Driver: Add an explicit offset to JoinedArg and JoinedAndSeparateArg, so that
...
they can be independent of the exact option that created them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105739 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-09 18:49:38 +00:00
Daniel Dunbar
a3f28c341a
Driver: Change Arg::render methods to use option name instead of string where
...
possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105738 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-09 18:49:31 +00:00
Daniel Dunbar
bbd2a04587
Driver: Allow Render{Separate,Joined} option flags on JoinedOrSeparate option types.
...
Also, simplify/fix SeparateArg::render with forced join.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99022 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-20 01:12:00 +00:00
Mike Stump
1eb4433ac4
Remove tabs, and whitespace cleanups.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-09 15:08:12 +00:00
Daniel Dunbar
478edc295e
Driver: Track which original arguments an arg is derived from, so that
...
we can properly claim arguments, even if they have been translated by
the tool chain.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68020 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-29 22:29:05 +00:00
Daniel Dunbar
ea728acde8
Driver: Fix typo in JoinedAndSeparateArg::render.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67677 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-25 05:23:40 +00:00
Daniel Dunbar
3fe51c49b2
Driver: Drop code for checking bounds in SeparateArg::render, this
...
situation should never occur now that arguments are parsed correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67493 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-22 23:50:14 +00:00
Nuno Lopes
378fd73b57
fix PR3859: crash with 'cc -V'
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67472 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-22 17:47:44 +00:00
Daniel Dunbar
38dd3d5418
Driver: Add Arg::getAsString and use when dumping arguments to
...
diagnostics.
- This ensures that the whole argument and values are printed,
instead of just the option name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67366 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-20 06:14:23 +00:00
Daniel Dunbar
42f7fc2304
Driver: Add Arg::renderAsInput; this is a messy area and something I
...
was hoping to clean up in the rewrite, but I don't see it yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67291 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-19 07:22:40 +00:00
Daniel Dunbar
21fd6ac7ae
Driver: Provide Arg::render implementations.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67182 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-18 08:01:48 +00:00
Daniel Dunbar
6d91b04c14
Driver: Initialize Arg::Claimed
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67160 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-18 02:57:50 +00:00
Daniel Dunbar
ec29d3635b
Driver: Implement JoinedAndSeparateArg::getValue and add parsing test
...
case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67151 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-18 01:48:37 +00:00
Daniel Dunbar
4a77edb3f0
Remove some now-unneeded calls to llvm::errs().flush().
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66555 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-10 18:00:19 +00:00
Mike Stump
2ace928d27
Fix warnings in build on clang-x86_64-freebsd buildbot.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66344 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-07 18:35:41 +00:00
Daniel Dunbar
0648262df7
Driver: Basic argument parsing.
...
- Add Driver::ParseArgStrings.
- Store values directly in CommaJoinedArg to support simple access.
- Add FlagArg class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66142 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-05 06:38:47 +00:00
Daniel Dunbar
bbf842bb27
Driver: Implement Option::accept methods.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66106 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-04 23:22:02 +00:00
Daniel Dunbar
f781c4192e
Driver: Add Arg::dump and SeparateArg stubs.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66100 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-04 23:02:50 +00:00
Daniel Dunbar
fb36caee24
Driver: Stub out Arg implementations.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66088 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-04 22:37:52 +00:00