[all-commits] [llvm/llvm-project] 768143: [clang-format] Assert that filenames are not empty
MyDeveloperDay via All-commits
all-commits at lists.llvm.org
Wed Nov 6 09:25:25 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7681435de148cf7a1c7db1b0daba0497630989d2
https://github.com/llvm/llvm-project/commit/7681435de148cf7a1c7db1b0daba0497630989d2
Author: paulhoad <mydeveloperday at gmail.com>
Date: 2019-11-06 (Wed, 06 Nov 2019)
Changed paths:
M clang/tools/clang-format/ClangFormat.cpp
Log Message:
-----------
[clang-format] Assert that filenames are not empty
Summary:
Adds asserts to catch empty filenames, which otherwise will cause a crash in SourceManager.
The clang-format tool now outputs an error if an empty filename is used.
Fixes bug: 34667
Reviewers: krasimir, djasper, MyDeveloperDay
Reviewed By: MyDeveloperDay
Subscribers: cfe-commits
Patch by: @jr
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D56345
More information about the All-commits
mailing list