summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: Pull getImmediateMacroName() out of DiagnosticRenderer andAnna Zaks2012-01-184-30/+44
| | | | | | into Lexer and Preprocessor; making it widely available. llvm-svn: 148410
* Fixed macro condition.Lang Hames2012-01-181-1/+1
| | | | llvm-svn: 148408
* objc: deprecate direct usage of 'isa' of objc objectsFariborz Jahanian2012-01-185-9/+18
| | | | | | | in favor of usage of api's intended for. // rdar://8290002 llvm-svn: 148404
* Add a test case where 'settings set frame-format' supplies a format string ↵Johnny Chen2012-01-181-0/+21
| | | | | | | | containing, among other things, a single backtick character. rdar://problem/10712130 llvm-svn: 148403
* Tidy up. 80 columns.Jim Grosbach2012-01-181-13/+13
| | | | llvm-svn: 148401
* Tidy up. MCAsmBackend naming conventions.Jim Grosbach2012-01-189-57/+57
| | | | llvm-svn: 148400
* Added installheaders target.Howard Hinnant2012-01-181-0/+2
| | | | llvm-svn: 148399
* Remove installhdrs target from MakefileHoward Hinnant2012-01-181-2/+0
| | | | llvm-svn: 148396
* AddressSanitizer: return false instead of true for __asan_get_ownership(NULL)Alexey Samsonov2012-01-183-29/+14
| | | | llvm-svn: 148394
* In the driver, -fmodules enables modules for C/Objective-C but oneDouglas Gregor2012-01-183-2/+18
| | | | | | also needs -fcxx-modules to enable modules for C++/Objective-C++. llvm-svn: 148393
* Add and update tests for character literalsSeth Cantrell2012-01-187-49/+56
| | | | llvm-svn: 148392
* stop claiming unicode escape sequences are too long in strings, because they ↵Seth Cantrell2012-01-181-2/+0
| | | | | | never are llvm-svn: 148391
* Fix char literal types in CSeth Cantrell2012-01-181-8/+6
| | | | | | | | L'x' is actually wchar_t support C11 u and U char literals llvm-svn: 148390
* Improves support for Unicode in character literalsSeth Cantrell2012-01-182-66/+121
| | | | | | | | | | | | | | | | | | | | Updates ProcessUCNExcape() for C++. C++11 allows UCNs in character and string literals that represent control characters and basic source characters. Also C++03 allows UCNs that refer to surrogate codepoints. UTF-8 sequences in character literals are now handled as single c-chars. Added error for multiple characters in Unicode character literals. Added errors for when a the execution charset encoding of a c-char cannot be represented as a single code unit in the associated character type. Note that for the purposes of this error the asso- ciated character type for a narrow character literal is char, not int, even though in C narrow character literals have type int. llvm-svn: 148389
* test svn commit accessSeth Cantrell2012-01-181-0/+1
| | | | llvm-svn: 148388
* Follow-up for r148386: deleted compiler-rt/lib/asan/sysinfoAlexander Potapenko2012-01-180-0/+0
| | | | llvm-svn: 148387
* Delete sysinfo/* and all references to it.Alexander Potapenko2012-01-1810-1335/+7
| | | | llvm-svn: 148386
* Implement AsanProcMaps for Mac OS. The code from sysinfo/ is not needed ↵Alexander Potapenko2012-01-184-14/+114
| | | | | | anymore and should be cleaned up. llvm-svn: 148385
* Remove dead code.Bill Wendling2012-01-181-45/+0
| | | | llvm-svn: 148384
* Fix a bug in the type-legalization of vector integers. When we bitcast one ↵Nadav Rotem2012-01-182-2/+18
| | | | | | vector type to another, we must not bitcast the result if one type is widened while the other is promoted. llvm-svn: 148383
* Convert DiagnoseEmptyLookup to use correction callbacks.Kaelyn Uhrain2012-01-184-7/+13
| | | | | | | | | | | | No new unit tests yet as there is no behavioral change (except for slightly more specific filtering in Sema::ActOnStartOfLambdaDefinition). Tests will be added as the code paths are traced in greater depth to determine how to improve the results--there are at least one or two known bugs that require those improvements. This commit lays the groundwork for those changes. llvm-svn: 148382
* Move narrowing conversion detection code from SemaInit to SemaOverload, readyRichard Smith2012-01-187-210/+326
| | | | | | | | | | | | | for it to be used in converted constant expression checking, and fix a couple of issues: - Conversion operators implicitly invoked prior to the narrowing conversion were not being correctly handled when determining whether a constant value was narrowed. - For conversions from floating-point to integral types, the diagnostic text incorrectly always claimed that the source expression was not a constant expression. llvm-svn: 148381
* Bump version number past lldb-107.Jason Molenda2012-01-182-16/+16
| | | | llvm-svn: 148380
* Add a '-X excluded-dir' option to the test driver to exclude a directory ↵Johnny Chen2012-01-181-0/+18
| | | | | | | | | | from consideration during test discovery. For example: ./dotest.py -X types -v from the test dir will ignore test cases under test/types. llvm-svn: 148379
* Add testcase for r148375!Nick Lewycky2012-01-182-0/+19
| | | | llvm-svn: 148378
* Fix ISD::REG_SEQUENCE to accept physical registers and change ↵Pete Cooper2012-01-182-16/+24
| | | | | | TwoAddressInstructionPass to insert copies for any physical reg operands of the REG_SEQUENCE llvm-svn: 148377
* Make PotentiallyPotentiallyEvaluated contexts work correctly when ↵Eli Friedman2012-01-182-15/+52
| | | | | | referencing a class field from outside an instance method. llvm-svn: 148376
* Fix a string over-run detected by ASAN.Nick Lewycky2012-01-181-2/+3
| | | | llvm-svn: 148375
* A call to strlen is not a constant expression, even if we're treating it as aRichard Smith2012-01-182-1/+23
| | | | | | builtin. llvm-svn: 148374
* The value of a case statement is a potentially evaluated context. Found by ↵Eli Friedman2012-01-182-2/+8
| | | | | | inspection. llvm-svn: 148373
* [analyzer] Refactor: prePropagateTaint ->Anna Zaks2012-01-181-43/+27
| | | | | | | | | TaintPropagationRule::process(). Also remove the "should be a pointer argument" warning - should be handled elsewhere. llvm-svn: 148372
* [analyzer] Taint: warn when tainted data is used to specify a bufferAnna Zaks2012-01-182-4/+84
| | | | | | | | | | size (Ex: in malloc, memcpy, strncpy..) (Maybe some of this could migrate to the CString checker. One issue with that is that we might want to separate security issues from regular API misuse.) llvm-svn: 148371
* [analyzer] Taint: add taint propagation rules for string and memory copyAnna Zaks2012-01-184-58/+177
| | | | | | functions. llvm-svn: 148370
* Constify FunctionDecl::getmemoryFunctionKind().Anna Zaks2012-01-182-2/+2
| | | | llvm-svn: 148369
* Fix special king of typo.Nick Lewycky2012-01-181-1/+1
| | | | llvm-svn: 148368
* Fix a couple issues where we didn't correctly delay diagnostics in ↵Eli Friedman2012-01-185-25/+136
| | | | | | PotentiallyPotentiallyEvaluated contexts. In preparation for making sizeof() PotentiallyPotentiallyEvaluated. llvm-svn: 148367
* Thumb2 load/store fixups don't set the thumb bit.Jim Grosbach2012-01-181-4/+8
| | | | | | | | | | Load/store instructions w/ a fixup to be relative a function marked as thumb don't use the low bit to specify thumb vs. non-thumb like interworking branches do, so don't set it when dealing with those fixups. rdar://10348687. llvm-svn: 148366
* Create target installhdrs as a synonym for do-installhdrs.Howard Hinnant2012-01-181-0/+2
| | | | llvm-svn: 148365
* Move some ARM specific MCAssmebler bits into the ARMAsmBackend.Jim Grosbach2012-01-183-9/+27
| | | | llvm-svn: 148364
* Add a CoveredBySubRegs property to Register descriptions.Jakob Stoklund Olesen2012-01-188-14/+53
| | | | | | | | | | | | | | | | When set, this bit indicates that a register is completely defined by the value of its sub-registers. Use the CoveredBySubRegs property to infer which super-registers are call-preserved given a list of callee-saved registers. For example, the ARM registers D8-D15 are callee-saved. This now automatically implies that Q4-Q7 are call-preserved. Conversely, Win64 callees save XMM6-XMM15, but the corresponding YMM6-YMM15 registers are not call-preserved because they are not fully defined by their sub-registers. llvm-svn: 148363
* [lit] Add a --filter option which is useful when dealing with virtual testDaniel Dunbar2012-01-181-0/+18
| | | | | | paths. llvm-svn: 148362
* output body of folded case again.Fariborz Jahanian2012-01-172-2/+4
| | | | llvm-svn: 148361
* Remove unneeded include.Jakub Staszak2012-01-171-1/+0
| | | | llvm-svn: 148360
* Folding away unreachable case statement.Fariborz Jahanian2012-01-172-7/+36
| | | | | | patch (slightly revised) by Aaron Ballman. llvm-svn: 148359
* Make sure to initialize ExternalProtocolPtrTyDouglas Gregor2012-01-171-1/+2
| | | | llvm-svn: 148358
* Implement ARMBaseRegisterInfo::getCallPreservedMask().Jakob Stoklund Olesen2012-01-173-19/+17
| | | | | | Move ARM callee-saved lists into ARMCallingConv.td. llvm-svn: 148357
* Fix MCJIT memory leak of owned TargetMachine.Jim Grosbach2012-01-171-0/+1
| | | | | | | The JIT is expected to take ownership of the TM that's passed in. The MCJIT wasn't freeing it, resulting in leaks. llvm-svn: 148356
* objc-arc: when 'assign' attribute is unspecified,Fariborz Jahanian2012-01-172-4/+43
| | | | | | | | rely on property's type for its life-time to avoid bogus warning with -Warc-unsafe-retained-assign. // rdar://10694932 llvm-svn: 148355
* Add Sema::isInitListConstructor. This will be needed for upcoming work.Sebastian Redl2012-01-172-0/+21
| | | | llvm-svn: 148354
* Auto deduction support for std::initializer_list, including for-range ↵Sebastian Redl2012-01-178-25/+107
| | | | | | | | support. This means you can now write: for (int i : {1, 4, 512, 23, 251}) {} llvm-svn: 148353
OpenPOWER on IntegriCloud