aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-23 13:56:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-23 13:56:14 +0000
commit5c20ac0134a0f9eb806f9304ef769c75954efaf7 (patch)
tree3b8217bf1bc3ec86e4059413219d5f1731960fa6 /clang/lib/Frontend/InitPreprocessor.cpp
parente842e4b2f1f83efdcc61c0051710cc51bb10c45c (diff)
downloadllvm-5c20ac0134a0f9eb806f9304ef769c75954efaf7.zip
llvm-5c20ac0134a0f9eb806f9304ef769c75954efaf7.tar.gz
llvm-5c20ac0134a0f9eb806f9304ef769c75954efaf7.tar.bz2
Simplify remove, create_directory and create_directories.
Before this patch they would take an boolean argument to say if the path already existed. This was redundant with the returned error_code which is able to represent that. This allowed for callers to incorrectly check only the existed flag instead of first checking the error code. Instead, pass in a boolean flag to say if the previous (non-)existence should be an error or not. Callers of the of the old simple versions are not affected. They still ignore the previous (non-)existence as they did before. llvm-svn: 201979
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions