-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
v4.2
-
Dev Tools 2019-07-29
-
None
-
None
-
None
-
None
-
None
-
None
-
None
clang-format produces formatting which would seem to indicate it doesn't actually understand constexpr-if expressions as seen in the following output from clang-format as run on evergreen during the `lint` task.
* Returns the bounds on the smallest and largest possible plaintext for the ciphertext.
*/
std::pair<size_t, size_t> expectedPlaintextLen() const {
- if constexpr (Header::kMode == aesMode::cbc) {
- return {getDataSize() - crypto::aesBlockSize, getDataSize()};
- } else {
+ if
+ constexpr(Header::kMode == aesMode::cbc) {
+ return {getDataSize() - crypto::aesBlockSize, getDataSize()};
+ }
+ else {
invariant(Header::kMode == aesMode::gcm);
return {getDataSize(), getDataSize()};
}
- is caused by
-
SERVER-41772 Deploy Clang Format 7.0.1 to the codebase
-
- Closed
-