[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-31 Thread David Goldman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd9739f29cdd4: Serialize PragmaAssumeNonNullLoc to support preambles (authored by dgoldman). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https:

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-29 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. (Just checking you've seen this is accepted and you can land when you're ready!) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 ___

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-29 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 418950. dgoldman added a comment. Rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp clang/inc

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-25 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 418301. dgoldman added a comment. Revert comment change Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-extra/clangd/unittests/DiagnosticsTests.

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Thanks, this looks really solid now! Comment at: clang/lib/Lex/PPLexerChange.cpp:430 - // Complain about reaching a true EOF within assume_nonnull. + // Complain ab

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-24 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 418030. dgoldman added a comment. Another formatting fix Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-extra/clangd/unittests/DiagnosticsTests

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-24 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 418004. dgoldman added a comment. if/else formatting Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-24 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 418001. dgoldman added a comment. Minor lint fixes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-24 Thread David Goldman via Phabricator via cfe-commits
dgoldman added inline comments. Comment at: clang/lib/Lex/PPLexerChange.cpp:436 + if (PragmaAssumeNonNullLoc.isValid() && !this->PPOpts->GeneratePreamble && + !(CurLexer && CurLexer->getFileID() == PredefinesFileID) && !isEndOfMacro && !(CurLexer && CurLexer->Is_Prag

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-24 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 417976. dgoldman marked an inline comment as done. dgoldman added a comment. Properly handle generation and restoring Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/Lex/PPLexerChange.cpp:436 + if (PragmaAssumeNonNullLoc.isValid() && !this->PPOpts->GeneratePreamble && + !(CurLexer && CurLexer->getFileID() == PredefinesFileID) && !isEndOfMacro && !(CurLexer && CurLexer->Is_Pra

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread David Goldman via Phabricator via cfe-commits
dgoldman added inline comments. Comment at: clang/lib/Lex/PPLexerChange.cpp:436 + if (PragmaAssumeNonNullLoc.isValid() && !this->PPOpts->GeneratePreamble && + !(CurLexer && CurLexer->getFileID() == PredefinesFileID) && !isEndOfMacro && !(CurLexer && CurLexer->Is_Prag

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/Lex/PPLexerChange.cpp:436 + if (PragmaAssumeNonNullLoc.isValid() && !this->PPOpts->GeneratePreamble && + !(CurLexer && CurLexer->getFileID() == PredefinesFileID) && !isEndOfMacro && !(CurLexer && CurLexer->Is_Pra

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/Lex/PPLexerChange.cpp:436 + if (PragmaAssumeNonNullLoc.isValid() && !this->PPOpts->GeneratePreamble && + !(CurLexer && CurLexer->getFileID() == PredefinesFileID) && !isEndOfMacro && !(CurLexer && CurLexer->Is_Pra

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread David Goldman via Phabricator via cfe-commits
dgoldman marked an inline comment as done. dgoldman added inline comments. Comment at: clang/lib/Lex/PPLexerChange.cpp:436 + if (PragmaAssumeNonNullLoc.isValid() && !this->PPOpts->GeneratePreamble && + !(CurLexer && CurLexer->getFileID() == PredefinesFileID) && !isEn

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 417623. dgoldman marked 2 inline comments as done. dgoldman added a comment. Minor fixes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-extra/c

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp:755 +)cpp"); + TU.Filename = "foo.m"; + auto AST = TU.build(); nit: not necessary, this pragma isn't tied to objc Comment at: clang-tools-ext

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-22 Thread David Goldman via Phabricator via cfe-commits
dgoldman added inline comments. Comment at: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp:748 +TEST(DiagnosticsTest, PreambleWithPragmaAssumeNonnull) { + Annotations Header(R"cpp( sammccall wrote: > sammccall wrote: > > This test seems to have a lot

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-22 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 417315. dgoldman marked 9 inline comments as done. dgoldman added a comment. Fixes for review Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 Files: clang-tools-ex

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-22 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp:748 +TEST(DiagnosticsTest, PreambleWithPragmaAssumeNonnull) { + Annotations Header(R"cpp( This test seems to have a lot of extraneous elements. The following

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-21 Thread David Goldman via Phabricator via cfe-commits
dgoldman added a comment. LMK if there are other folks more suited to review this, I'm not sure... Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122179/new/ https://reviews.llvm.org/D122179 ___ cfe-commi

[PATCH] D122179: Serialize PragmaAssumeNonNullLoc to support preambles

2022-03-21 Thread David Goldman via Phabricator via cfe-commits
dgoldman created this revision. dgoldman added reviewers: sammccall, doug.gregor. Herald added subscribers: usaxena95, kadircet, arphaman. Herald added a project: All. dgoldman requested review of this revision. Herald added subscribers: cfe-commits, ilya-biryukov. Herald added projects: clang, cla