llvm-project/clang/tools/clang-format
Duncan P. N. Exon Smith 59a3b1afb2 clang-format: Assert in-memory file created in createInMemoryFile, NFC
`SourceManager::createFileID` asserts that the given `FileEntry` is not
null, so remove the logic that passed in `nullptr`. Since we just added
the file to an in-memory FS via an API that cannot fail, use
`llvm_unreachable` on the error path. Didn't use an `assert` since it
seems cleaner semantically to check the error (and better,
hypothetically, for updating the API to use `Expected` instead of
`ErrorOr`).

I noticed this incidentally while auditing calls to `createFileID`.
2020-10-16 10:20:32 -04:00
..
fuzzer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [clang-format] [RELAND] Remove the dependency on frontend 2019-11-06 17:33:37 +00:00
ClangFormat.cpp clang-format: Assert in-memory file created in createInMemoryFile, NFC 2020-10-16 10:20:32 -04:00
clang-format-bbedit.applescript
clang-format-diff.py [clang-format] Recognize "hxx" as a C++ header in clang-format-diff.py 2020-09-18 21:43:18 +02:00
clang-format-sublime.py [ClangFormat] Editor integrations inherit default style from clang-format binary 2019-05-17 07:22:55 +00:00
clang-format-test.el [Format] Fix clang-format.el unit tests after commit f349cc37cc 2019-11-11 17:55:38 +01:00
clang-format.el clang-format: Add a fallback style to Emacs mode 2019-11-06 09:50:54 +00:00
clang-format.py [Format] Work around current vim bugs in clang-format.py 2020-04-15 20:11:14 +02:00
git-clang-format Fix quiet mode in git-clang-format 2020-08-26 18:15:52 +02:00