[llvm-dev] Spurious cast warning for C++? (original) (raw)
Brennan Vincent via llvm-dev llvm-dev at lists.llvm.org
Sat Apr 8 13:59:11 PDT 2017
- Previous message: [llvm-dev] Getting a pointer to a i8 from a global variable that holds a constant string
- Next message: [llvm-dev] Spurious cast warning for C++?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
How difficult would it be to add a warning to Clang when the programmer performs a cast that provably has no effect?
A particular case I have in mind is someone getting confused and calling std::move on an argument to a copy-constructor for a class that doesn't implement move semantics.
I would be grateful if someone either (1) told me why this is difficult/impossible, or (2) gave me some pointers to where I could start trying to implement it...
- Previous message: [llvm-dev] Getting a pointer to a i8 from a global variable that holds a constant string
- Next message: [llvm-dev] Spurious cast warning for C++?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]