summaryrefslogtreecommitdiff
path: root/.editorconfig
Commit message (Collapse)AuthorAgeFilesLines
* Indent .sh files with 4 spacesJoel Rosdahl2020-04-261-1/+1
|
* Run clang-format on all code to follow the new code styleJoel Rosdahl2019-08-141-1/+1
| | | | | 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-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add .editorconfigJoel Rosdahl2019-07-151-0/+17
This makes GitHub show tabs as 2 spaces wide, which is what I like (and also what the code style assumes when counting characters for line widths).