Closed Bug 1438866 Opened 7 years ago Closed 7 years ago

Make mozsearch c++ indexer more windows-friendly

Categories

(Webtools :: Searchfox, enhancement)

enhancement
Not set
normal

Tracking

(firefox60 fixed)

RESOLVED FIXED
Tracking Status
firefox60 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(3 files)

I have some patches that make the c++ indexer more windows friendly. i.e. they don't cause clang to immediately crash. This is needed for bug 1418415.
I also verified these patches successfully index m-c for me locally on a windows box.
Attachment #8951641 - Flags: review?(emilio) → review+
Comment on attachment 8951642 [details] Bug 1438866 - Add some utility code to help with debugging. https://reviewboard.mozilla.org/r/220932/#review226958 Not super-fan of adding debug-only code that is dead, but I guess as long as it's useful... it's fine. r=me
Attachment #8951642 - Flags: review?(emilio) → review+
Comment on attachment 8951643 [details] Bug 1438866 - Mark empty filenames not interesting. https://reviewboard.mozilla.org/r/220934/#review226960 ::: build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp:180 (Diff revision 1) > It = FileMap.find(Id); > if (It == FileMap.end()) { > // We haven't seen this file before. We need to make the FileInfo > // structure information ourselves > std::string Filename = SM.getFilename(Loc); > - std::string Absolute = getAbsolutePath(Filename); > + std::string Absolute; Probably worth a comment in both places?
Attachment #8951643 - Flags: review?(emilio) → review+
Added comments
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a04f505f9454 Use proper path separators for windows. r=emilio https://hg.mozilla.org/integration/autoland/rev/a42f1a25f088 Add some utility code to help with debugging. r=emilio https://hg.mozilla.org/integration/autoland/rev/d071f1a3ace4 Mark empty filenames not interesting. r=emilio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: