summaryrefslogtreecommitdiffstats
path: root/tools/clang
Commit message (Collapse)AuthorAgeFilesLines
* clang: Let update.sh clobber gch files in ninja build directories as well.thakis@chromium.org2012-01-291-0/+6
| | | | | | | | | | BUG=none TEST=ninja build just works after clang rolls. TBR=mark Review URL: https://chromiumcodereview.appspot.com/9225048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119644 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 148039:148911thakis@chromium.org2012-01-291-1/+1
| | | | | | | | | | BUG=97532,111806,111208 (maybe?) TEST=none TBR=hans Review URL: http://codereview.chromium.org/9297028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119637 0039d316-1c4b-4281-b951-d872f2087c98
* Clang style plugin: add two banned directories.hans@chromium.org2012-01-231-0/+2
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9193017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118702 0039d316-1c4b-4281-b951-d872f2087c98
* Detect whether we're in a WebKit checkout to find the correct make output ↵jochen@chromium.org2012-01-191-1/+9
| | | | | | | | | | | directory BUG=WK-75622 TEST=create a WebKit/chromium/mac/make checkout, update clang, should delete GCH fiels Review URL: https://chromiumcodereview.appspot.com/9231007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118288 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 147434:148039thakis@chromium.org2012-01-141-1/+1
| | | | | | | | | | | BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/9174009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117801 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 147225:147434thakis@chromium.org2012-01-021-4/+4
| | | | | | | | | | | | | | Also set MACOSX_DEPLOYMENT_TARGET to 10.5, so that the mac binaries don't require 10.6. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/9069004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116110 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 146361:147225thakis@chromium.org2011-12-241-1/+1
| | | | | | | | | | BUG=107412 TEST=none TBR=hans Review URL: http://codereview.chromium.org/9007051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115755 0039d316-1c4b-4281-b951-d872f2087c98
* Add dart to the list of banned dirs.antonm@google.com2011-12-211-0/+1
| | | | | | Review URL: http://codereview.chromium.org/9017014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115357 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 145842:146361thakis@chromium.org2011-12-121-1/+1
| | | | | | | | | | | | New in this roll: ASan! (for mac and linux64 for now) BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8918007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114055 0039d316-1c4b-4281-b951-d872f2087c98
* clang packaging script: Build compiler-rt, package ASan.thakis@chromium.org2011-12-082-0/+18
| | | | | | | | | | | | This has no effect until the next clang roll. On linux, only 64bit is supported for now. BUG=none TEST=`clang -faddress-sanitizier test.c` works. Running the generated a.out reports memory errors if test.c contained any. TBR=kcc Review URL: http://codereview.chromium.org/8852008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113546 0039d316-1c4b-4281-b951-d872f2087c98
* One more OVERRIDE test that the code should already pass.avi@chromium.org2011-12-072-3/+9
| | | | | | | | | | BUG=104314 TEST=green builds Review URL: http://codereview.chromium.org/8823013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113308 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 145240:145842thakis@chromium.org2011-12-061-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8817002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113148 0039d316-1c4b-4281-b951-d872f2087c98
* Make as many URLs as possible be HTTPS.palmer@chromium.org2011-12-012-3/+3
| | | | | | | We're downloading code here, after all! Review URL: http://codereview.chromium.org/8772015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112547 0039d316-1c4b-4281-b951-d872f2087c98
* Remove disabling flag.avi@chromium.org2011-11-291-32/+5
| | | | | | | | | | | Won't have an effect until the next Clang roll, but use of it was already removed in r111969. BUG=104314 TEST=green builds Review URL: http://codereview.chromium.org/8729041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112011 0039d316-1c4b-4281-b951-d872f2087c98
* Force annotation of overridden methods with OVERRIDE.avi@chromium.org2011-11-291-2/+1
| | | | | | | | | BUG=104314 TEST=green builds Review URL: http://codereview.chromium.org/8727007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111969 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/tools/maruel@chromium.org2011-11-291-6/+12
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=timurrrr@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 145052:145240thakis@chromium.org2011-11-281-1/+1
| | | | | | | | | | | | | | Notable in this roll is that it adds support for mandatory OVERRIDEs on overridden functions in chromium code to the chromium style plugin. The warning is currently behind a flag. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8718015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111776 0039d316-1c4b-4281-b951-d872f2087c98
* Extend Clang plugin to warn on missing OVERRIDE.avi@chromium.org2011-11-2810-28/+165
| | | | | | | | | BUG=104314 TEST=none Review URL: http://codereview.chromium.org/8586037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111712 0039d316-1c4b-4281-b951-d872f2087c98
* Add "pdf/" to the style checker directory blacklist.thakis@chromium.org2011-11-281-0/+1
| | | | | | | | | | | | | | | | | The internal PDF code gets many warnings from the plugin that we aren't interested in. The only open source code that currently matches that blacklist is the pdf code in skia, and that's already blacklisted through the third_party rule. BUG=none TEST=none Review URL: http://codereview.chromium.org/8693009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111670 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 144547:145052thakis@chromium.org2011-11-221-1/+1
| | | | | | | | | | | | Notable in this roll: clang now understands -faddress-sanitizer. The runtime library isn't checked in yet, so it's not all that useful yet. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8562011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111203 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 143497:144547thakis@chromium.org2011-11-152-4/+4
| | | | | | | | | | | | | | | Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). Previous attempt at http://codereview.chromium.org/8538027/ BUG=104323 TEST=none TBR=hans Review URL: http://codereview.chromium.org/8572021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110184 0039d316-1c4b-4281-b951-d872f2087c98
* Point out that reverting clang rolls is safe.thakis@chromium.org2011-11-151-0/+1
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8468008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110126 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109982 - Roll clang 143497:144521joi@chromium.org2011-11-152-4/+4
| | | | | | | | | | | | | | | | | | | | | Reason: Was causing Clang crashes on Google Chrome Mac official builder, e.g. http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Mac/builds/5731) Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8538027 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/8574008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110101 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 143497:144521thakis@chromium.org2011-11-142-4/+4
| | | | | | | | | | | | Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8538027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109982 0039d316-1c4b-4281-b951-d872f2087c98
* Clang plugin: *Overriding* method must have "virtual" keyword.hans@chromium.org2011-11-102-2/+2
| | | | | | | | | | | | | The overridden method is the one in the base class. It's the overriding method that might be missing the "virtual" keyword. BUG=none TEST=none Review URL: http://codereview.chromium.org/8465020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109473 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 142926:143497thakis@chromium.org2011-11-051-1/+1
| | | | | | | | | | | | | | A notable change is that debugging information now uses indirect strings, which reduces binary size by ~50% on linux (still 2x the size of the gcc output though.) BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8477010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108766 0039d316-1c4b-4281-b951-d872f2087c98
* Get Clang revision from a file rather than grepping DEPSmcgrathr@chromium.org2011-11-041-26/+12
| | | | | | | | | | | | | | | | | | | | | | | Grepping the clang_revision line out of DEPS is ugly. It requires other repositories to use the File() syntax in their DEPS just to get the chromium/src/DEPS file so that tools/clang/scripts/update.sh can grep it. File() is de facto deprecated and it's not supported by the .DEPS.git conversion tools, so this is a barrier to converting dependent repositories such as native_client, as well as being ugly. Instead, just keep the Clang revision number in the script that uses it. When this lands, http://code.google.com/p/chromium/wiki/UpdatingClang must be updated to describe updating the tools/clang/scripts/update.sh script. BUG= http://code.google.com/p/chromium/issues/detail?id=102682 TEST= ran tools/clang/scripts/update.sh successfully R=thakis@chromium.org,nsylvain@google.com Review URL: http://codereview.chromium.org/8438021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108736 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Let `gclient sync` autoupdate clang on linux if clang has been ↵thakis@chromium.org2011-11-011-2/+7
| | | | | | | | | | | | | | | downloaded before. This way, clang is autoupdated for people who use clang on linux, but people and bots who don't use it are still not affected BUG=none TEST=linux clang users stop complaining to me about things that were fixed long ago. Review URL: http://codereview.chromium.org/8429020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108118 0039d316-1c4b-4281-b951-d872f2087c98
* Delete some code that is no longer neededthakis@chromium.org2011-10-311-6/+0
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/8429021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108030 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo to make clang plugin tests work on linux.thakis@chromium.org2011-10-221-1/+1
| | | | | | | | | | | | | (Happened to work on OS X due to it having a case-insensitive file system.) BUG=none TEST=tools/clang/scripts/package.sh successfully runs tests on linux. TBR=erg Review URL: http://codereview.chromium.org/8370018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106845 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Let `update.sh --run-tests` run llvm & clang unit tests; let ↵thakis@chromium.org2011-10-222-1/+4
| | | | | | | | | | | | package.sh run tests. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8369020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106823 0039d316-1c4b-4281-b951-d872f2087c98
* style plugin: Don't suppress all warnings for checkouts in /usr/local/googlethakis@chromium.org2011-10-211-0/+11
| | | | | | | | | BUG=none TEST=The plugin tests pass on my linux box. Review URL: http://codereview.chromium.org/8369015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106804 0039d316-1c4b-4281-b951-d872f2087c98
* Don't let update.sh print a warning message about xcodebuild if ↵thakis@chromium.org2011-10-161-1/+2
| | | | | | | | | | | | GYP_GENERATORS=make. BUG=none TEST=none Review URL: http://codereview.chromium.org/8308004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105702 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 140930:142072thakis@chromium.org2011-10-153-2/+25
| | | | | | | | | | | | | | Also add a --run-tests parameter to update.sh The plugin change is required due to http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20111010/047769.html BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8247005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105679 0039d316-1c4b-4281-b951-d872f2087c98
* OpenBSD and FreeBSD fixes for base.mark@chromium.org2011-10-131-1/+1
| | | | | | | | | | | | | OpenBSD and FreeBSD need -I/usr/local/include for <execinfo.h>. Use !#/usr/bin/env bash because on !linux it's not located there. Patch by Robert Nagy <robert@openbsd.org> BUG=none TEST=none Review URL: http://codereview.chromium.org/8228005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105257 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Let update.sh look in chromium_deps/DEPS if it exists.thakis@chromium.org2011-10-111-0/+4
| | | | | | | | | | | | For bare webkit checkouts. BUG=97043 TEST=none Review URL: http://codereview.chromium.org/8220021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104834 0039d316-1c4b-4281-b951-d872f2087c98
* clang plugin: Make test script work no matter what the cwd is.thakis@chromium.org2011-10-101-2/+7
| | | | | | | | | | BUG=none TEST=`tools/scripts/plugin/test/test.sh third_party/llvm-build/Release+Asserts` works. Review URL: http://codereview.chromium.org/8206021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104753 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 139990:140930thakis@chromium.org2011-10-072-5/+5
| | | | | | | | | | BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8174007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104419 0039d316-1c4b-4281-b951-d872f2087c98
* Convert all of media/ over to the new base::{Bind,Callback} hotness.fischman@chromium.org2011-09-291-3/+0
| | | | | | | | | | | | | | | | | | | Mostly this was a rote conversion, replacing: - Pass-by-pointer CallbackN<>'s become pass-by-const-ref Callback<>'s. - scoped_ptr<CallbackN<>> members become Callback<> members. - several dedicated FooCallback typedefs became base::Closure. Because it was only used in a small handful of places and only in one place profitably, I deleted AutoCallbackRunner. Because it tickles a Bind bug I disabled mfdecoder in .gyp (about to get deleted in a scherkus CL). BUG=none TEST=media_tests, trybots Review URL: http://codereview.chromium.org/8071007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103376 0039d316-1c4b-4281-b951-d872f2087c98
* clang plugin test script: Set $? if a test fails.thakis@chromium.org2011-09-261-0/+8
| | | | | | | | | | | | | I want to run this script automatically on clang rolls, and need a working $? to detect failure. BUG=none TEST=none Review URL: http://codereview.chromium.org/8038011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102782 0039d316-1c4b-4281-b951-d872f2087c98
* Add OWNERS for tools/clang.thakis@chromium.org2011-09-252-0/+3
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8045010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102673 0039d316-1c4b-4281-b951-d872f2087c98
* clang updater: Prefer curl over wget on linux if installed.thakis@chromium.org2011-09-241-4/+11
| | | | | | | | | | | | BUG=97288 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102596 Review URL: http://codereview.chromium.org/8015020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102647 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 102596 (which has no -s on linux apparently) - clang updater: Prefer ↵thakis@chromium.org2011-09-241-11/+4
| | | | | | | | | | | | | | | curl over wget on linux if installed. BUG=97288 TEST=none Review URL: http://codereview.chromium.org/8015020 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/8028013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102631 0039d316-1c4b-4281-b951-d872f2087c98
* clang updater: Prefer curl over wget on linux if installed.thakis@chromium.org2011-09-231-4/+11
| | | | | | | | | | BUG=97288 TEST=none Review URL: http://codereview.chromium.org/8015020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102596 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 102346 (already landed in 102342. It's a great CL, but having it in ↵thakis@chromium.org2011-09-221-6/+0
| | | | | | | | | | | | | | | the tree once is enough.) - clang downloader: Clean up temporary files on the bots. BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7994010 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/7970013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102349 0039d316-1c4b-4281-b951-d872f2087c98
* clang downloader: Clean up temporary files on the bots.thakis@chromium.org2011-09-221-0/+6
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7994010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102346 0039d316-1c4b-4281-b951-d872f2087c98
* style plugin: Don't ignore style warnings on the linux clang trybots.thakis@chromium.org2011-09-221-3/+8
| | | | | | | | | | | | | | | | | | Two parts: 1.) Let the banned_directories_ require full directory matches, not just suffixes. 2.) Remove "clang" from banned_directories_. Now that mac builds just go into xcodebuild / out, it's no longer required. Regressed in http://codereview.chromium.org/7824047 BUG=97452 TEST=Try jobs to linux_clang report style problems again. tools/clang/plugin/tests/test.sh passes again. Review URL: http://codereview.chromium.org/7980045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102344 0039d316-1c4b-4281-b951-d872f2087c98
* clang downloader: Clean up temporary files on the bots.thakis@chromium.org2011-09-221-0/+6
| | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7994010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102342 0039d316-1c4b-4281-b951-d872f2087c98
* clang updater: Fix error-case regression introduced in r101931thakis@chromium.org2011-09-201-2/+2
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7983009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101998 0039d316-1c4b-4281-b951-d872f2087c98
* Download clang-xxx.tgz into /tmp instead of the current directory.thakis@chromium.org2011-09-201-4/+9
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7931022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101931 0039d316-1c4b-4281-b951-d872f2087c98