Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a number of minor correctness issues that Clang flagged #14871

Merged
merged 7 commits into from Feb 18, 2023

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Feb 17, 2023

  • lld-link is more strict about the casing of keywords in .def files
  • [[nodiscard]] must come before virtual and static qualifiers
  • precomp.h is never to be included with <>
  • We were calling the jsoncpp constructors directly (oops) as functions (oops)
  • ClipboardTests constructed KeyEvents by copy instead of directly

I don't know about the Dispatcher one, but it looks more correct this way. Also, it compiles. That was done before the C++/WinRT update, so maybe they fixed it as well.

@DHowett DHowett added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Feb 17, 2023
@DHowett DHowett merged commit c4c0465 into main Feb 18, 2023
@DHowett DHowett deleted the dev/duhowett/2023-compiler/1-misc branch February 18, 2023 00:13
DHowett added a commit that referenced this pull request Sep 11, 2023
* `[[nodiscard]]` and `[[maybe_unused]]` must come before `virtual` and
  `static` qualifiers
* We were calling the jsoncpp constructors directly (again) as functions
  (again)
* Some of our preprocessor `#endif` lines were quite messed up
  (`-Winvalid-token`)
* One of our test projects was using somebody else's `precomp.h`

Related to #14871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants