[PATCH] D148318: [clang-tidy] Add `performance-avoid-endl` check
Carlos Galvez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 14 07:30:17 PDT 2023
carlosgalvezp added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/performance/avoid-endl.cpp:47
+ std::cout << "World" << std::endl;
+ // CHECK-MESSAGES: :[[@LINE-1]]:27: warning: do not use std::endl with iostreams; use '\n' instead
+ std::cerr << "World" << std::endl;
----------------
carlosgalvezp wrote:
> Use CHECK-FIXES to also test the fixes.
Please add the complete error message, which includes the check name in brackets (see similar tests as reference)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148318/new/
https://reviews.llvm.org/D148318
More information about the cfe-commits
mailing list