-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix errors and warnings building swift/IDE on Windows using MSVC #6028
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
Conversation
Result = ImportsSeen.insert(K); | ||
|
||
using PairType = llvm::DenseSet<swift::ide::CodeCompletionCache::Key, | ||
llvm::DenseMapInfo<CodeCompletionCache::Key> >::iterator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++11 doesnt require the space between >
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks @compnerd
@swift-ci please test and merge |
@compnerd could you try again, tests didn't trigger. Thanks |
@swift-ci please test and merge |
|
||
using PairType = llvm::DenseSet<swift::ide::CodeCompletionCache::Key, | ||
llvm::DenseMapInfo<CodeCompletionCache::Key>>::iterator; | ||
std::pair<PairType, bool> Result = ImportsSeen.insert(K); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -5075,7 +5083,7 @@ void CodeCompletionCallbacksImpl::doneParsing() { | |||
if (isDynamicLookup(*ExprType)) | |||
Lookup.setIsDynamicLookup(); | |||
|
|||
CodeCompletionTypeContextAnalyzer TypeAnalyzer(CurDeclContext, ParsedExpr); | |||
::CodeCompletionTypeContextAnalyzer TypeAnalyzer(CurDeclContext, ParsedExpr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeCompletionTypeContextAnalyser
:The fix is to give MSVC a bit more information by qualifying the namespace (global)
static_cast: truncation of constant value
warning