c:\src\chromium\src\ui\views\controls\webview\unhandled_keyboard_event_handler_win.cc:9: Found C system header after other header. Should be: unhandled_keyboard_event_handler_win.h, c system, c++ system, other. [build/include_order] [4]
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAE5mQiNau6MYaszhEkWdW47O9tnPhnuJHQS7idgKAV3Dx35i8g%40mail.gmail.com.
#include "a.h"
#include "b.h"
#if defined(OS_WIN)
#include <windows.h>
#include "c.h"
#endif // OS_WIN
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAbyoHo1gbHMOWT7x6detdXAJad9nS-9i_uPenwTTwEWfg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACwGi-6MWcVrsg05tYVWb154kU19AqsbXcz-fqVjOxjOObqzrQ%40mail.gmail.com.
I think that windows.h is always a platform-specific header, even in Windows-specific source files. Among other things it defines thousands of macros which can affect our code and this impact is best minimized by including it as late as possible so that its macros don't pollute our headers.
So, I'd like to clarify the Chromium style guide to say that "headers like windows.h" (maybe just windows.h?) should be in their own section at the end, and update the presubmit to allow this. I also need to figure out why the presubmit doesn't fire consistently.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAE5mQiNau6MYaszhEkWdW47O9tnPhnuJHQS7idgKAV3Dx35i8g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAbyoHo1gbHMOWT7x6detdXAJad9nS-9i_uPenwTTwEWfg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAE5mQiNau6MYaszhEkWdW47O9tnPhnuJHQS7idgKAV3Dx35i8g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAbyoHo1gbHMOWT7x6detdXAJad9nS-9i_uPenwTTwEWfg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACwGi-6MWcVrsg05tYVWb154kU19AqsbXcz-fqVjOxjOObqzrQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/a1933f07-120b-40b2-bc64-175ace239ca3n%40chromium.org.
One complication I noticed is that if we want to write#if defined(OS_WIN)#include <windows.h>#endifdon't we first have to #include "build/build_confg.h" to get the OS_WIN definition? Which would mean that "build_config.h" would have to come before any <foo.h> system headers, contradicting the rule?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAKQnr0T1Ze0Doyuv-oHj%2B4SxNk-q7OZEBX8nmX2SwuPnWbP-ZQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAPYU9wRX6%3D3HNENe4ysHQ0ywxQtKuXmVzLG4ZiR04iM8cT387A%40mail.gmail.com.
Yes, but then you're back to the "there's one magic file that allowed to go first", and I thought that was completely against the spirit of the rules.
One could argue that it should always be included conditionally even in win-specific files along the lines of#if defined(OS_WIN)#include <windows.h>#else#error "Included on wrong platform"#endifas a courtesy in diagnosing build failures.
Haha, thanks!
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAPYU9wRmXR-f0ztu2eLQjvUrZJYMuU3YFa5npypZB3uwP%3DZ7HA%40mail.gmail.com.
Really? I wouldn't think that.
Really? I wouldn't think that.
On Fri, Aug 20, 2021 at 12:00 PM Peter Boström <pb...@chromium.org> wrote: