[clang] [Clang] suggest headers on undeclared errors (PR #140247)

2025-05-16 Thread Jongmyeong Choi via cfe-commits

https://github.com/jongmyeong-choi edited 
https://github.com/llvm/llvm-project/pull/140247
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [Clang] suggest headers on undeclared errors (#120388) (PR #140247)

2025-05-16 Thread Jongmyeong Choi via cfe-commits

https://github.com/jongmyeong-choi created 
https://github.com/llvm/llvm-project/pull/140247

When a “use of undeclared identifier” error happens for a function listed in 
StdSymbolMap, emit a note telling the user which header to include.
Because nested-name-specifier errors occur before the function name is known, 
perform this lookup later in isCXXDeclarationSpecifier() after a parse failure.



  



Rate limit · GitHub


  body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe 
UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
font-size: 14px;
line-height: 1.5;
margin: 0;
  }

  .container { margin: 50px auto; max-width: 600px; text-align: center; 
padding: 0 24px; }

  a { color: #0366d6; text-decoration: none; }
  a:hover { text-decoration: underline; }

  h1 { line-height: 60px; font-size: 48px; font-weight: 300; margin: 0px; 
text-shadow: 0 1px 0 #fff; }
  p { color: rgba(0, 0, 0, 0.5); margin: 20px 0 40px; }

  ul { list-style: none; margin: 25px 0; padding: 0; }
  li { display: table-cell; font-weight: bold; width: 1%; }

  .logo { display: inline-block; margin-top: 35px; }
  .logo-img-2x { display: none; }
  @media
  only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (   min--moz-device-pixel-ratio: 2),
  only screen and ( -o-min-device-pixel-ratio: 2/1),
  only screen and (min-device-pixel-ratio: 2),
  only screen and (min-resolution: 192dpi),
  only screen and (min-resolution: 2dppx) {
.logo-img-1x { display: none; }
.logo-img-2x { display: inline-block; }
  }

  #suggestions {
margin-top: 35px;
color: #ccc;
  }
  #suggestions a {
color: #66;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
  }


  
  



  Whoa there!
  You have exceeded a secondary rate limit.
Please wait a few minutes before you try again;
in some cases this may take up to an hour.
  
  
https://support.github.com/contact";>Contact Support —
https://githubstatus.com";>GitHub Status —
https://twitter.com/githubstatus";>@githubstatus
  

  

  

  

  

  


___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [Clang] suggest headers on undeclared errors (PR #140247)

2025-05-25 Thread Jongmyeong Choi via cfe-commits

jongmyeong-choi wrote:

I see it now. It's a good topic. I think we need to make more structural 
decisions and do a lot of pre-work to do this item. For now, let's close this 
change and discuss it in #139855.

https://github.com/llvm/llvm-project/pull/140247
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [Clang] suggest headers on undeclared errors (PR #140247)

2025-05-25 Thread Jongmyeong Choi via cfe-commits

https://github.com/jongmyeong-choi closed 
https://github.com/llvm/llvm-project/pull/140247
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [Clang] suggest headers on undeclared errors (PR #140247)

2025-05-23 Thread Jongmyeong Choi via cfe-commits

jongmyeong-choi wrote:

Thanks for all your reviews. I learned a lot from your comments. I'll try to 
rewrite it from scratch, but honestly, it'll take me a while to figure out the 
TableGen structure. If anyone wants to make a change to this topic, please feel 
free to jump in.

https://github.com/llvm/llvm-project/pull/140247
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits