Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix formatting | Joel Rosdahl | 2020-02-10 | 1 | -1/+1 |
| | |||||
* | Improve the failed() and fatal() mechanisms | Joel Rosdahl | 2020-02-08 | 1 | -1/+1 |
| | | | | | | | | | | The failure() and fatal() functions now exit by throwing exceptions that are caught by the top level functions. This makes it possible to “throw Failure” in functions that don’t have access to orig_args (or the future context object). While at it, renamed top-level functions to better reflect their purpose. | ||||
* | Split ccache.hpp into per-.cpp file headers | Joel Rosdahl | 2020-01-22 | 1 | -2/+1 |
| | | | | This reduces code dependencies that hamper refactoring. | ||||
* | AtomicFile: Cope with write error (e.g. due to full disk) when closing | Joel Rosdahl | 2019-11-01 | 1 | -1/+6 |
| | |||||
* | Use #include "third_party/..." consistently to include third party code | Joel Rosdahl | 2019-10-19 | 1 | -1/+2 |
| | |||||
* | Rename AtomicFile::close to commit | Joel Rosdahl | 2019-10-05 | 1 | -2/+2 |
| | | | | This better conveys the semantics. | ||||
* | Include .tmp. in AtomicFile names | Joel Rosdahl | 2019-10-05 | 1 | -1/+1 |
| | | | | | This makes it possible to use AtomicFile for files in the cache directory without having to add a “.tmp” interfix explicitly. | ||||
* | Use UpperCamelCase instead of snake_case for namespaces | Joel Rosdahl | 2019-10-05 | 1 | -1/+2 |
| | | | | This makes Foo::bar work for both a namespace Foo and a class Foo. | ||||
* | Make AtomicFile::Type values lower case | Joel Rosdahl | 2019-10-05 | 1 | -1/+1 |
| | |||||
* | Extract temporary file creation code into a function | Joel Rosdahl | 2019-10-05 | 1 | -19/+11 |
| | | | | | Also, use cstdio instead of iostream since that will be needed in upcoming commits to get hold on the underlying file descriptor. | ||||
* | Add AtomicFile class for updating a file with rename-in-place | Joel Rosdahl | 2019-08-14 | 1 | -0/+80 |