summaryrefslogtreecommitdiff
path: root/src/language.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Support source code language “cuda”, used by ClangJoel Rosdahl2021-01-161-3/+8
| | | | | | See also 2728c68bba9f8b4bb5c8812cd1b50402b81ebfd9. Closes #772.
* Add supported_source_extension functionJoel Rosdahl2021-01-161-1/+13
|
* Add support for hip language (#666)Paul Fultz II2020-09-211-0/+2
|
* C++-ify language functionsJoel Rosdahl2020-05-061-41/+32
|
* Low hanging fruits of some auto fixable improvements via clang-tidy (#545)Alexander Lanin2020-02-251-8/+8
|
* Split ccache.hpp into per-.cpp file headersJoel Rosdahl2020-01-221-2/+2
| | | | This reduces code dependencies that hamper refactoring.
* Remove superfluous clang-format commentsJoel Rosdahl2019-12-151-64/+60
|
* Run clang-format on all code to follow the new code styleJoel Rosdahl2019-08-141-105/+111
| | | | | If you end up on this commit when running “git blame ...”, it’s probably a good idea to use “git blame -w ...” to ignore whitespace changes.
* C++-ify source codeJoel Rosdahl2019-08-141-0/+153
The ccache source code will be converted to C++, targeting C++11. This commit only arranges the existing C-style code to be built as C++ code. This makes it possible to call new C++ code from old C-style code. Gradual conversion to C++ functionality and idioms will follow in a slow and controlled fashion – no big bang rewrites. The alternative would be to convert code in a top-down fashion, i.e. only calling legacy C code from new C++ code, not the other way around. That approach is however not a good idea since the code that will benefit most from being written in proper C++ is code deep down in the call chains. Except for renaming source code files to .cpp and .hpp, this commit makes minimal changes to make the code base buildable again, for example: - Instructs configure.ac to look for a mandatory C++11-compliant compiler. - Adds Makefile rules for building C++ code. - Sets up Travis-CI to pass C++ compiler flags and similar to the build. - Adds new casts where needed. - Adds const keywords where needed. - Renames variables to something else than C++ keywords (e.g. “template”). - Rearranges some code to avoid complaints about goto jumps that cross variable lifetimes.