summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/FileRemapper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFCFangrui Song2019-08-051-2/+2
| | | | | | F_{None,Text,Append} are kept for compatibility since r334221. llvm-svn: 367800
* [clang] Adopt new FileManager error-returning APIsHarlan Haskins2019-08-011-8/+12
| | | | | | | Update the callers of FileManager::getFile and FileManager::getDirectory to handle the new llvm::ErrorOr-returning methods. Signed-off-by: Harlan Haskins <harlan@apple.com> llvm-svn: 367616
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Misc typos fixes in ./lib folderRaphael Isemann2018-12-101-1/+1
| | | | | | | | | | | | | | Summary: Found via `codespell -q 3 -I ../clang-whitelist.txt -L uint,importd,crasher,gonna,cant,ue,ons,orign,ned` Reviewers: teemperor Reviewed By: teemperor Subscribers: teemperor, jholewinski, jvesely, nhaehnle, whisperity, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D55475 llvm-svn: 348755
* Remove trailing spaceFangrui Song2018-07-301-3/+3
| | | | | | sed -Ei 's/[[:space:]]+$//' include/**/*.{def,h,td} lib/**/*.{cpp,h} llvm-svn: 338291
* Fix Clang-tidy readability-redundant-string-cstr warningsMalcolm Parsons2016-11-021-1/+1
| | | | | | | | | | Reviewers: aaron.ballman, mehdi_amini, dblaikie Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26206 llvm-svn: 285799
* Fix a small bug in clang where generating some temporary files would have an ↵Argyrios Kyrtzidis2015-09-091-1/+1
| | | | | | | | extra period before the extension. Patch by Cameron Esfahani! llvm-svn: 247160
* Use the simpler version of llvm::sys::fs::exists.Rafael Espindola2014-09-111-6/+2
| | | | | | | In all these cases it looks like the intention was to handle error in a similar way to the file not existing. llvm-svn: 217614
* Update for llvm api change.Rafael Espindola2014-08-251-8/+8
| | | | llvm-svn: 216397
* Use std::unique_ptr in a few methods that take ownership.Rafael Espindola2014-08-171-4/+6
| | | | llvm-svn: 215864
* Update for llvm api change.Rafael Espindola2014-07-061-3/+4
| | | | llvm-svn: 212408
* Remove leftovers of '-arcmt-modify-in-memory' from r133315Alp Toker2014-07-051-16/+0
| | | | llvm-svn: 212381
* There is no std::errc:success, remove the llvm one.Rafael Espindola2014-05-311-1/+1
| | | | llvm-svn: 209959
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-071-2/+2
| | | | | | This compiles cleanly with lldb/lld/clang-tools-extra/llvm. llvm-svn: 203279
* Update for llvm api change.Rafael Espindola2014-02-241-4/+2
| | | | llvm-svn: 202053
* Use simpler version of fs::create_directory.Rafael Espindola2014-02-131-2/+1
| | | | llvm-svn: 201293
* Enforce safe usage of DiagnosticsEngine::getCustomDiagID()Alp Toker2014-01-261-4/+2
| | | | | | | | | | | | | | | | Replace the last incorrect uses and templatize the function to require a compile-time constant string preventing further misuse. The diagnostic formatter expects well-formed input and has undefined behaviour with arbitrary input or crafted user strings in source files. Accepting user input would also have caused unbounded generation of new diagnostic IDs which can be problematic in long-running sessions or language bindings. This completes the work to fix several incorrect callers that passed user input or raw messages to the diagnostics engine where a constant format string was expected. llvm-svn: 200132
* Use the simpler version of llvm::sys::fs::remove when possible.Rafael Espindola2014-01-101-2/+1
| | | | llvm-svn: 198957
* [arcmt] Remove some dead code.Argyrios Kyrtzidis2013-07-161-27/+14
| | | | | | Patch by Rafael Espíndola. llvm-svn: 186462
* Update for llvm API change.Rafael Espindola2013-07-161-2/+2
| | | | llvm-svn: 186448
* Use llvm::sys::fs::createTemporaryFile.Rafael Espindola2013-07-051-4/+3
| | | | llvm-svn: 185717
* Modernize some low-hanging PathV1 uses.Benjamin Kramer2013-06-131-5/+3
| | | | llvm-svn: 183903
* Include PathV1.h in files that use it.Rafael Espindola2013-06-111-0/+1
| | | | | | This is preparation for replacing Path.h with PathV2.h. llvm-svn: 183781
* Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth2012-12-041-3/+3
| | | | | | | | | | | | | uncovered. This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files. I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers. llvm-svn: 169237
* Move PreprocessorOptions into the Lex library, and make it intrusivelyDouglas Gregor2012-10-241-1/+1
| | | | | | reference-counted. llvm-svn: 166587
* Fix use of uninitialized variable caught by GCC's -Wmaybe-uninitialized.David Blaikie2012-05-011-1/+3
| | | | | | Review by Doug Gregor. llvm-svn: 155880
* Simplify some users of DenseMap::erase.Benjamin Kramer2012-03-241-4/+1
| | | | llvm-svn: 153389
* Add new code migrator support for migrating existing Objective-C code to useTed Kremenek2012-03-061-7/+19
| | | | | | | | | | | the new Objective-C NSArray/NSDictionary/NSNumber literal syntax. This introduces a new library, libEdit, which provides a new way to support migration of code that improves on the original ARC migrator. We now believe that most of its functionality can be refactored into the existing libraries, and thus this new library may shortly disappear. llvm-svn: 152141
* Basic: import SmallString<> into clang namespaceDylan Noblesmith2012-02-051-4/+4
| | | | | | | (I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) llvm-svn: 149799
* Basic: import OwningPtr<> into clang namespaceDylan Noblesmith2012-02-051-1/+1
| | | | llvm-svn: 149798
* Remove unused variables.Rafael Espindola2011-12-251-2/+1
| | | | llvm-svn: 147260
* Rename Diagnostic to DiagnosticsEngine as per issue 5397David Blaikie2011-09-251-4/+4
| | | | llvm-svn: 140478
* Twinify.Benjamin Kramer2011-08-271-21/+15
| | | | llvm-svn: 138689
* Try to unbreak the build on systems where uint64_t isn't something that ↵Douglas Gregor2011-08-261-1/+1
| | | | | | StringRef::getAsInteger can handle as its second argument llvm-svn: 138680
* [arcmt] Add a test case for r138671 and improve the loop.Argyrios Kyrtzidis2011-08-261-4/+1
| | | | llvm-svn: 138674
* [arcmt] Fix horrible bug where migrating files if there is a space in the pathsArgyrios Kyrtzidis2011-08-261-12/+15
| | | | | | of the migrated files. rdar://10022801 llvm-svn: 138671
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-10/+10
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* [arcmt] Remove redundant has_error() check.Argyrios Kyrtzidis2011-07-101-2/+2
| | | | llvm-svn: 134876
* [arcmt] Try fixing test/ARCMT/migrate.m for windows hosts.Argyrios Kyrtzidis2011-07-101-1/+2
| | | | llvm-svn: 134875
* [arcmt] Introduce new '-ccc-arcmt-migrate <path>' ARC migration driver option.Argyrios Kyrtzidis2011-07-091-8/+8
| | | | | | | | | | | | | | | | | | | | This is a new mode of migration, where we avoid modifying the original files but we emit temporary files instead. <path> will be used to keep migration process metadata. Currently the temporary files that are produced are put in the system's temp directory but we can put them in the <path> if is necessary. Also introduce new ARC migration functions in libclang whose only purpose, currently, is to accept <path> and provide pairs of original file/transformed file to map from the originals to the files after transformations are applied. Finally introduce the c-arcmt-test utility that exercises the new libclang functions, update arcmt-test, and add tests for the whole process. rdar://9735086. llvm-svn: 134844
* The ARC Migration Tool. All the credit goes to Argyrios and FariborzJohn McCall2011-06-151-0/+290
for this. llvm-svn: 133104
OpenPOWER on IntegriCloud