Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
v4.2
-
Dev Tools 2019-07-29
Description
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()};
|
}
|
Attachments
Issue Links
- is caused by
-
SERVER-41772 Deploy Clang Format 7.0.1 to the codebase
-
- Closed
-