[all-commits] [llvm/llvm-project] 1f818f: [clang-format] assert(false) -> llvm_unreachable
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Wed Feb 15 05:12:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f818f63b829f3038a9fd605bf90348ba58cd981
https://github.com/llvm/llvm-project/commit/1f818f63b829f3038a9fd605bf90348ba58cd981
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2023-02-15 (Wed, 15 Feb 2023)
Changed paths:
M clang/lib/Format/FormatTokenSource.h
Log Message:
-----------
[clang-format] assert(false) -> llvm_unreachable
Avoids warnings in -asserts builds.
FormatTokenSource.h:240:3: error: non-void function does not return a value [-Werror,-Wreturn-type]
}
^
More information about the All-commits
mailing list