summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Align RHS after assignments and return statements.Daniel Jasper2012-12-242-9/+46
| | | | | | | | | | | | | | | | This changes: int Result = a + // force break b; return Result + // force break 5; To: int Result = a + // force break b; return Result + // force break 5; llvm-svn: 171032
* Fix formatting over overloaded operators.Daniel Jasper2012-12-242-3/+35
| | | | | | | | | | | | | | | | | | | This fixes llvm.org/pr14686. We used to add too many spaces for different versions of overloaded operator function declarations/definitions. This patch changes, e.g. operator *() {} operator >() {} operator () () {} to operator*() {} operator>() {} operator()() {} llvm-svn: 171028
* Support -fsanitize-memory-track-origins.Evgeniy Stepanov2012-12-247-5/+38
| | | | llvm-svn: 171020
* CGClass.cpp: [PR14335] Remove comma-separated \param, for now. [-Wdocumentation]NAKAMURA Takumi2012-12-241-4/+0
| | | | | | /// \param argBegin,argEnd the arguments to evaluate and pass to the constructor llvm-svn: 171015
* clang/AST/VTTBuilder.h: Prune one description in three methods, ↵NAKAMURA Takumi2012-12-241-9/+0
| | | | | | | | VTTBuilder::AddVTablePointer(), VTTBuilder::LayoutSecondaryVirtualPointers(), and VTTBuilder::LayoutSecondaryVirtualPointers(). [-Wdocumentation] /// \param AddressPoints - If the vtable is a construction vtable, this has the address points for it. llvm-svn: 171014
* CGDecl.cpp: Prune three descriptions in two methods, ↵NAKAMURA Takumi2012-12-241-8/+0
| | | | | | | | | | CodeGenFunction::pushIrregularPartialArrayCleanup() and CodeGenFunction::pushRegularPartialArrayCleanup(). [-Wdocumentation] /// \param array - a value of type elementType* /// \param destructionKind - the kind of destruction required /// \param initializedElementCount - a value of type size_t* holding the number of successfully-constructed elements llvm-svn: 171013
* DiagnosticRenderer.cpp: Prune one description in ↵NAKAMURA Takumi2012-12-241-1/+0
| | | | | | | | DiagnosticRenderer::emitMacroExpansions(). [-Wdocumentation] /// \param MacroSkipEnd The depth to stop skipping macro expansions. llvm-svn: 171012
* CGValue.h: Update one \param to Addr in MakeBitfield(). [-Wdocumentation]NAKAMURA Takumi2012-12-241-1/+1
| | | | llvm-svn: 171011
* test/Index/preamble_macro_template.cpp: Tweak for win32.NAKAMURA Takumi2012-12-241-3/+1
| | | | | | | | | | | Using the file immediately after "> file 2>&1" causes weird behavior on win32. For example, "foo > %t 2>&1; FileCheck --input-file=%t" Use "foo 2>&1 | tee %t" instead. Note, mixing stdout and stderr to the same handle might cause unexpected behavior, due to buffering. llvm-svn: 171009
* Take operator precedence into account when splitting lines.Daniel Jasper2012-12-242-3/+22
| | | | | | | | | | | | | | | With this patch, splitting after binary operators has a panelty corresponding to the operator's precedence. We used to ignore this and eagerly format like: if (aaaaaaaaaaaaaaaaaaaaaaaaa || bbbbbbbbbbbbbbbbbbbbbbbbb && ccccccccccccccccccccccccc) { .. } With this patch, this becomes: if (aaaaaaaaaaaaaaaaaaaaaaaaa || bbbbbbbbbbbbbbbbbbbbbbbbb && ccccccccccccccccccccccccc) { .. } llvm-svn: 171007
* Documentation: PTHInternals: use correct adornments and fix typosDmitri Gribenko2012-12-231-4/+4
| | | | | | Fixes PR14014 llvm-svn: 171005
* Documentation: fix a syntax error: empty line required after code-block::Dmitri Gribenko2012-12-231-0/+1
| | | | llvm-svn: 171004
* Documentation: add MemorySanitizer to the toctreeDmitri Gribenko2012-12-231-1/+2
| | | | llvm-svn: 171003
* docs: Convert ReleaseNotes to reST.Sean Silva2012-12-233-181/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the last of the "regular" documents to convert to reST, and so I'm declaring the initial clang reST conversion "done". However, - There are some documents in clang/www/ which probably should be migrated into clang/docs/, such as www/OpenProjects.html The primary thing blocking me from doing this right now is not knowing how to set up a redirect so that the old URL's continue to work. - LibASTMatchersReference.html is not reST. This page is auto-generated by clang/docs/tools/dump_ast_matchers.py from the source and has some collapse/expand logic that isn't expressible directly with Sphinx, so just converting it to reST is not really a good strategy. Manuel Klimek and I discussed this and the general agreed-upon direction is making that page data-driven so that it, say, pulls in an auto-generated blob of JSON which describes the matchers and builds up the "matcher reference" part of the page with a small amount of JS. - There are some rogue .txt files hanging around. Also, I dropped the little dragon logo at the top because Sphinx was warning about an external image reference (not sure why, but meh, I didn't want to fight it). If anything, we would want such a logo integrated into the site's overall theme, rather than hardcoded here. llvm-svn: 170994
* libFormat: Teach the *& usage heuristic that "return" starts a rhs too.Nico Weber2012-12-232-5/+11
| | | | | | | | "return a*b;" was formatted as "return a *b;" and is now formatted as "return a * b;". Fixes PR14687 partially. llvm-svn: 170993
* Move a declaration closer to its use. No functionality change.Nico Weber2012-12-231-2/+2
| | | | llvm-svn: 170992
* Clean out release notes for clang 3.3Benjamin Kramer2012-12-221-174/+13
| | | | llvm-svn: 170987
* [libclang] Fix crash when code-completing a macro invocation thatArgyrios Kyrtzidis2012-12-223-15/+55
| | | | | | reached EOF and did not expand the argument into the source context. llvm-svn: 170980
* [libclang] Don't try to translate diagnostics from the precompiled preamble ↵Argyrios Kyrtzidis2012-12-222-35/+0
| | | | | | | | | | | to the code-completion results, the SourceManager state may be slightly different when code-completing. And we don't even care for diagnostics when code-completing, anyway. llvm-svn: 170979
* [libclang] Check for the 'LIBCLANG_NOTHREADS' environment variable before ↵Argyrios Kyrtzidis2012-12-221-0/+6
| | | | | | | | creating a separate thread for code-completion. llvm-svn: 170978
* PR14695: Fix assert from bad cast<>. Not every namespace is a NamespaceDecl; ↵Richard Smith2012-12-222-5/+21
| | | | | | it might instead be a TranslationUnitDecl. llvm-svn: 170976
* Add back -Wduplicate-enum which I mistakenly removed.Ted Kremenek2012-12-223-0/+275
| | | | | | | | | | | | This was removed with -Wunique-enum, which is still removed. The corresponding thread on cfe-comments for that warning is here: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024224.html If we get specific user feedback for -Wduplicate-enum we can evaluate whether or not to keep it. llvm-svn: 170974
* Fix typo: objc_no_direct_instance_variable_assignmemt => ↵Ted Kremenek2012-12-223-4/+4
| | | | | | | | objc_no_direct_instance_variable_assignment. Fixes <rdar://problem/12927551>. llvm-svn: 170971
* [analyzer] Convert SimpleStreamChecker to use the PointerEscape callbackAnna Zaks2012-12-221-80/+16
| | | | | | The new callback greatly simplifies the checker. llvm-svn: 170969
* Use a safe default width for template-diff'ing integral arguments, inDouglas Gregor2012-12-212-1/+19
| | | | | | | case we can't find an exact width to use. Fixes crash in <rdar://problem/12456626>. llvm-svn: 170951
* Adding to FormatTest.cpp test for a very long ObjC methodFariborz Jahanian2012-12-211-0/+15
| | | | | | declaration requiring formatting of wrap-arounds. llvm-svn: 170946
* Tweak Sema::CheckLiteralKind() to also include block literalsTed Kremenek2012-12-214-12/+11
| | | | | | | This simplifies some diagnostic logic in checkUnsafeAssignLiteral(), hopefully making it less error prone. llvm-svn: 170945
* Insulate this test from the whims of the random number generator.Matt Beaumont-Gay2012-12-211-2/+2
| | | | | | | Our internal buildbot just failed because the tempfile happened to be named 'nodefaultlib-lcGA7k.o', which contains the substring '-lc'. llvm-svn: 170941
* Add comments back that were accidentally removed in r170933.Chad Rosier2012-12-211-0/+2
| | | | llvm-svn: 170938
* Fix a warning due to an extraneous comma.Chad Rosier2012-12-211-1/+1
| | | | llvm-svn: 170935
* Remove unused arguments and rename to conform to coding standards.Chad Rosier2012-12-213-18/+10
| | | | llvm-svn: 170933
* Change checkUnsafeAssignLiteral() to use the new Sema::CheckLiteralKind().Ted Kremenek2012-12-214-28/+23
| | | | | | | | | | Along the way, fix a bug in CheckLiteralKind(), previously in diagnoseObjCLiteralComparison, where we didn't ignore parentheses in boxed expressions for purpose of classification. In other words, both @42 and @(42) should be classified as numeric literals. llvm-svn: 170931
* Hoist logic for classifying Objective-C literals into Sema (proper) for use ↵Ted Kremenek2012-12-212-52/+57
| | | | | | | | with other diagnostics. No immediate (intended) functionality change. llvm-svn: 170930
* Switch FrontendOptions to using an initializer list rather than initializingRichard Smith2012-12-211-14/+8
| | | | | | | the values in the constructor. The constructor implementation is trivial beyond the value initialisations. Patch by Saleem Abdulrasool! llvm-svn: 170929
* Fixes couple of friend declaration -ast-print bugFariborz Jahanian2012-12-212-6/+29
| | | | | | | | | found by running -ast-print on all-std-headers.cpp which caused it to go into infinite loop. Now -ast-print prints all declarations found in all-std-headers.cpp. llvm-svn: 170928
* Indent.Chad Rosier2012-12-211-2/+1
| | | | llvm-svn: 170925
* Remove unnecessary checks.Chad Rosier2012-12-211-6/+3
| | | | llvm-svn: 170924
* Use descriptive enum instead of raw integers for checkUnsafeAssignLiteral().Ted Kremenek2012-12-211-7/+9
| | | | llvm-svn: 170920
* Sink call to checkUnsafeAssignLiteral() into checkUnsafeAssignObject().Ted Kremenek2012-12-211-23/+22
| | | | llvm-svn: 170919
* Fix indent.Chad Rosier2012-12-211-1/+1
| | | | llvm-svn: 170918
* [analyzer] Don't perform an expensive assertion in release builds.Jordan Rose2012-12-211-2/+6
| | | | | | | | | Unfortunately, we don't seem to have a standard way to do this. I'm using the __OPTIMIZE__ GNU extension that Clang also defines, but that doesn't help MSVC. I suppose we could remove the check entirely, but it's useful for developing new constraint managers. llvm-svn: 170915
* format: Handle #import as include directive too.Nico Weber2012-12-212-0/+7
| | | | llvm-svn: 170914
* Add a testcase for ARM cortex-r5 subtargetQuentin Colombet2012-12-211-0/+5
| | | | llvm-svn: 170912
* clang-format: No spaces around directory specifiersDaniel Jasper2012-12-212-2/+38
| | | | | | | | | | This fixes PR14683. We used to format like this: #include <a / b> And this patch changes this to: #include <a/b> llvm-svn: 170910
* Add ARM cortex-r5 subtarget as available mcpuQuentin Colombet2012-12-213-1/+4
| | | | llvm-svn: 170909
* [analyzer] Fix typos.Anna Zaks2012-12-211-2/+2
| | | | llvm-svn: 170907
* [analyzer] Re-apply r170826 and make the dumping of the GallGraphAnna Zaks2012-12-214-75/+51
| | | | | | | | | | | | | | | | | | | | | | | deterministic. Commit message for r170826: [analyzer] Traverse the Call Graph in topological order. Modify the call graph by removing the parentless nodes. Instead all nodes are children of root to ensure they are all reachable. Remove the tracking of nodes that are "top level" or global. This information is not used and can be obtained from the Decls stored inside CallGraphNodes. Instead of existing ordering hacks, analyze the functions in topological order over the Call Graph. Together with the addition of devirtualizable ObjC message sends and blocks to the call graph, this gives around 6% performance improvement on several large ObjC benchmarks. llvm-svn: 170906
* Sort the includes according to the coding standard.Roman Divacky2012-12-211-1/+1
| | | | llvm-svn: 170905
* Fix typo.Fariborz Jahanian2012-12-211-1/+1
| | | | llvm-svn: 170904
* Remove duplicate includes.Roman Divacky2012-12-217-8/+0
| | | | llvm-svn: 170903
OpenPOWER on IntegriCloud