[PATCH] D20693: [clang-tidy] New checker to replace dynamic exception specifications

don hinton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 7 23:15:38 PDT 2017


hintonda added a comment.

Here's a simple example that demonstrates the corruption I'm seeing:

#include "llvm/ADT/StringRef.h"

int main() {

  std::string ss = "";
  llvm::StringRef Ref = true ? "noexcept" : ss;
  std::string s = Ref;
  return 0;

}


https://reviews.llvm.org/D20693





More information about the cfe-commits mailing list