summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix the EntityKind order so that all entity kinds that can be copied (using ↵Anders Carlsson2010-01-233-8/+9
| | | | | | copy constructors) come first. Also, fix a bug where EK_New was left out of the err_init_conversion_failed diagnostic (It is now reported as 'new value'). Please review Doug :) llvm-svn: 94289
* During overload resolution diagnostics, sort non-viable candidates by the ↵John McCall2010-01-232-5/+122
| | | | | | | | | | | | | quality of their conversions. To make this work, fill out all conversions for all candidates (but only when diagnosing overload failure). Split out a few cases from ovl_fail_bad_conversion which didn't actually involve a failed argument conversion. I'm pretty sure this is not a well-founded ordering, but I'm not sure it matters. llvm-svn: 94283
* Separate EK_ArrayOrVectorElement into EK_ArrayElement and EK_VectorElement; ↵Anders Carlsson2010-01-232-12/+24
| | | | | | arrays and vectors are pretty different beasts in C++. Doug, please review/comment. llvm-svn: 94279
* Created __builtin___NSStringMakeConstantString() builtin, which generates ↵David Chisnall2010-01-2310-20/+50
| | | | | | constant Objective-C strings. llvm-svn: 94274
* Rename getClangFullVendorVersion() to getClangFullVersion().Ted Kremenek2010-01-234-4/+4
| | | | llvm-svn: 94273
* Implement elementary access control.John McCall2010-01-2313-31/+368
| | | | llvm-svn: 94268
* Teach the cursor visitor to recurse into the type information ofDouglas Gregor2010-01-232-0/+45
| | | | | | explicit casts, sizeof, alignof, and compound literals. llvm-svn: 94265
* Extern darwin-clang_rt.c test to also test targetting ARM ({armv6, armv7} xDaniel Dunbar2010-01-231-10/+90
| | | | | | {thumb,no-thumb}). llvm-svn: 94264
* Fix a FIXME, this test folds to a constant now.Daniel Dunbar2010-01-231-6/+3
| | | | llvm-svn: 94263
* Extend clang_createTranslationUnitFromSourceFile() to support creatingDouglas Gregor2010-01-2313-154/+334
| | | | | | translation units that include unsaved files. llvm-svn: 94258
* outside a method, 'super' should resolve in a normal name look upFariborz Jahanian2010-01-222-1/+18
| | | | | | to mimic gcc's behavior. Fixes radar 7400691. llvm-svn: 94246
* Add 'clang_getClangVersion()' function to CIndex. This exposes the full ↵Ted Kremenek2010-01-225-3/+32
| | | | | | Clang version string through the CIndex API. llvm-svn: 94242
* Fixup the rest of the testcases to grep the .ll file instead of the .sMike Stump2010-01-221-263/+22
| | | | | | file, and add FIXMEs to the remaining broken tests. llvm-svn: 94238
* Fixes test.Fariborz Jahanian2010-01-221-2/+2
| | | | llvm-svn: 94236
* Move version string generation (e.g., "clang 1.1 ...") to ↵Ted Kremenek2010-01-225-16/+28
| | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). llvm-svn: 94235
* Improve content and structure of the Doxygen documentation for theDouglas Gregor2010-01-221-267/+401
| | | | | | CIndex API. No functionality change. llvm-svn: 94234
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-225-25/+37
| | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231
* Convert more testcases to checking the .ll file instead of the .s file.Mike Stump2010-01-221-269/+105
| | | | llvm-svn: 94229
* Yet more CIndex API cleanup:Douglas Gregor2010-01-224-21/+137
| | | | | | | | - Added more routines to manipulate/compare source locations and ranges - Switched clang_getCursor() over to take a CXSourceLocation rather than file/line/column. llvm-svn: 94226
* ui64, etc. are valid VS suffixes.Fariborz Jahanian2010-01-222-2/+15
| | | | | | Fixes radar 7562363. llvm-svn: 94224
* Rename pch::SVN_BRANCH_REVISION to pch::VERSION_CONTROL_BRANCH_REVISION.Ted Kremenek2010-01-223-8/+8
| | | | llvm-svn: 94214
* Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵Ted Kremenek2010-01-225-9/+15
| | | | | | return a StringRef. llvm-svn: 94213
* Eliminate index-test; all of its tested functionality is now in c-index-test.Douglas Gregor2010-01-2211-570/+1
| | | | llvm-svn: 94211
* Eliminate CIndex's dependency on the Clang Index library, since weDouglas Gregor2010-01-225-20/+7
| | | | | | weren't actually using any of its facilities. llvm-svn: 94210
* Be sure to select primary bases among the nearly empties in preorder,Mike Stump2010-01-222-0/+44
| | | | | | | not just among the direct bases. Before we where missing nearly empties that were bases of virtual base classes. llvm-svn: 94208
* Teach CIndex's cursor visitor to restrict its traversal to a specificDouglas Gregor2010-01-2212-381/+235
| | | | | | | | | | | | | | region of interest (if provided). Implement clang_getCursor() in terms of this traversal rather than using the Index library; the unified cursor visitor is more complete, and will be The Way Forward. Minor other tweaks needed to make this work: - Extend Preprocessor::getLocForEndOfToken() to accept an offset from the end, making it easy to move to the last character in the token (rather than just past the end of the token). - In Lexer::MeasureTokenLength(), the length of whitespace is zero. llvm-svn: 94200
* Finish off fixing up debug information.Mike Stump2010-01-221-4/+4
| | | | llvm-svn: 94193
* Patch fixes a lookup bug in c++'s anonymous union memberFariborz Jahanian2010-01-222-1/+17
| | | | | | lookup. Fixes radar 7562438. llvm-svn: 94191
* No need to canonicalize the type and use dyn_cast. Also, correctly diagnose ↵Anders Carlsson2010-01-222-13/+50
| | | | | | trying to override a function returning an lvalue reference with a function overriding an rvalue reference. llvm-svn: 94183
* Eliminate some Clang warningsDouglas Gregor2010-01-222-9/+9
| | | | llvm-svn: 94177
* Simplify code.Benjamin Kramer2010-01-221-18/+8
| | | | llvm-svn: 94175
* Fix an obvious goof that caused us to only see the top level of return typesChandler Carruth2010-01-222-4/+21
| | | | | | | | | when checking for covariance. Added some fun test cases, fixes PR6110. This felt obvious enough to just commit. ;] Let me know if anything needs tweaking. llvm-svn: 94173
* Ensure we output all non-virtual base vtables. Fixes PR5890.Mike Stump2010-01-222-29/+52
| | | | llvm-svn: 94163
* Process cast according to the cast kind. Prepare for more specific cast Zhongxing Xu2010-01-222-19/+49
| | | | | | handling (for C++). No functionality change for now. llvm-svn: 94153
* Driver/Darwin: Update tool chain to use static clang_rt libraries provided byDaniel Dunbar2010-01-222-10/+50
| | | | | | | | | | | | | | | | | | | | compiler-rt. This tool chain now works on x86 and ARM, but isn't the x86 default yet. This drastically cleans up the linker invocation, old invocation: -- "/Developer/usr/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.6.0" "-weak_reference_mismatches" "non-weak" "-o" "a.out" "-lcrt1.10.6.o" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64" "-L/usr/lib/i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1" "-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.." "t.o" "-lSystem" "-lgcc" -- New invocation: -- # For 10.6: "/usr/bin/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.6.0" "-o" "a.out" "-lcrt1.10.6.o" "t.o" "-lSystem" # For 10.4: "/usr/bin/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.4" "-o" "a.out" "-lcrt1.o" "t.o" "-lSystem" "-lgcc_s.10.4" "/Volumes/Data/ddunbar/llvm.obj.64/Debug/lib/clang/1.1/lib/darwin/libclang_rt.10.4.a" -- llvm-svn: 94150
* Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,Daniel Dunbar2010-01-221-2/+1
| | | | | | not always added. llvm-svn: 94149
* Update debugging code.Mike Stump2010-01-221-16/+18
| | | | llvm-svn: 94145
* Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" archDaniel Dunbar2010-01-223-68/+73
| | | | | | name being used in an driver invocation. llvm-svn: 94139
* Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going toDaniel Dunbar2010-01-222-18/+5
| | | | | | diverge from gcc anyway. llvm-svn: 94138
* Add a Coding Standards section to hacking.html, and point out that cstdio is ↵Daniel Dunbar2010-01-221-0/+22
| | | | | | forbidden. llvm-svn: 94137
* Use raw_ostream instead of cstdio.Daniel Dunbar2010-01-221-19/+21
| | | | llvm-svn: 94136
* Visit if, switch statements properlyDouglas Gregor2010-01-221-0/+32
| | | | llvm-svn: 94126
* Teach the cursor visitor to walk all of the C and Objective-CDouglas Gregor2010-01-223-29/+132
| | | | | | | | declarations that have enough source information to make such a walk useful. This includes walking into variable initializers and enum constants, the types behind typedefs, etc. llvm-svn: 94124
* Create function, block, and template parameters in the context of theJohn McCall2010-01-225-11/+20
| | | | | | | | | translation unit. This is temporary for function and block parameters; template parameters can just stay this way, since Templates aren't DeclContexts. This gives us the nice property that everything created in a record DC should have access in C++. llvm-svn: 94122
* revert my patch for rdar://7520940 that warns when a published headerChris Lattner2010-01-228-37/+5
| | | | | | | is #included with "foo.h" style syntax instead of framework syntax. It produced too much noise. llvm-svn: 94120
* Wire up the new range reporting for unreachable code.Mike Stump2010-01-211-6/+16
| | | | llvm-svn: 94118
* Teach the cursor visitor to walk statements and expressions, includingDouglas Gregor2010-01-212-23/+74
| | | | | | a few important subkinds. Now we're cookin' with gas! llvm-svn: 94116
* Improve unreachable code warnings with respect to dead member andMike Stump2010-01-213-0/+46
| | | | | | dead array references. llvm-svn: 94115
* Due to local reversions and re-patching, I accidentally had multiple copiesJohn McCall2010-01-211-151/+0
| | | | | | of the 'payload' in this header. llvm-svn: 94109
* Improve unreachable code warnings for with respect to dead functional casts ↵Mike Stump2010-01-213-2/+9
| | | | | | in C++. llvm-svn: 94106
OpenPOWER on IntegriCloud