Improve build instructions and cleanup code - #764
Improve build instructions and cleanup code#764Stephan T. Lavavej (StephanTLavavej) merged 14 commits into
Conversation
This significantly improves usability as `.gitignore` lists `/out/`.
This essentially replicates the information in `.gitignore`, where `/build/` was added by microsoft#581.
This still isn't a supported mode.
There were a few cases (outside of LLVM-derived tests) where we weren't following our usual convention. I'm cleaning them up, even within tr1. Additionally, change a couple of C casts to static_casts, slowly working towards microsoft#184.
In new code, we prefer using `{}` to construct tags,
because `()` resembles a function call. See microsoft#468.
xstrxfrm.cpp: dstlen can be const. Remove unnecessary parentheses (equality has well-known higher precedence than logical AND).
I will high 5 James but not my call :P |
|
The most important principle is consistency. If enough maintainers want to change our convention to say (It's already somewhat problematic that test code sometimes uses |
You misspelled "
As possibly the greatest offender / proponent of east EDIT: That said, I will never write |
Also scope `size_t i` to a for-loop and use preincrement. Immediately initialize `ans`.
|
Strongly agreed 😸 |
build.x64toout\build\x64, fixing README.md: How To Consume inconsistent with How To Build With A Native Tools Command Prompt #518..gitignorelists/out/."build"toskipped_directoriesinvalidate.cpp..gitignore, where/build/was added by Add "/build/" to the .gitignore #581.#if !_HAS_EXCEPTIONS._RAISEwas never used for real exceptions.unsignedtounsigned int.static_casts, slowly working towards src: Change C casts to C++ casts #184.{}formake_index_sequenceandindex_sequence_for.{}to construct tags, because()resembles a function call. See STL: Consistently use empty braces to construct tags like _Meow{} #468.__crtLCMapStringAcalls and use C++ casts.dstlencan beconst.ploc == 0toploc == nullptr.[[maybe_unused]], preprocessor comments.#ifdef _CRT_APPfor simplicity._underscore_lowercaseparameter names.size_t ito a for-loop and use preincrement.ans.