mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-10-31 04:32:33 +00:00 
			
		
		
		
	Adapt clang rC358696: removal of OutputIsBinary
This commit is contained in:
		
							parent
							
								
									2e6aed4408
								
							
						
					
					
						commit
						b2f32788d3
					
				| @ -406,7 +406,12 @@ public: | |||||||
|   std::vector<CompletionItem> ls_items; |   std::vector<CompletionItem> ls_items; | ||||||
| 
 | 
 | ||||||
|   CompletionConsumer(const CodeCompleteOptions &Opts, bool from_cache) |   CompletionConsumer(const CodeCompleteOptions &Opts, bool from_cache) | ||||||
|       : CodeCompleteConsumer(Opts, false), |       : | ||||||
|  | #if LLVM_VERSION_MAJOR >= 9 // rC358696
 | ||||||
|  |         CodeCompleteConsumer(Opts), | ||||||
|  | #else | ||||||
|  |         CodeCompleteConsumer(Opts, false), | ||||||
|  | #endif | ||||||
|         Alloc(std::make_shared<clang::GlobalCodeCompletionAllocator>()), |         Alloc(std::make_shared<clang::GlobalCodeCompletionAllocator>()), | ||||||
|         CCTUInfo(Alloc), from_cache(from_cache) {} |         CCTUInfo(Alloc), from_cache(from_cache) {} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -75,9 +75,14 @@ class SignatureHelpConsumer : public CodeCompleteConsumer { | |||||||
| public: | public: | ||||||
|   bool from_cache; |   bool from_cache; | ||||||
|   SignatureHelp ls_sighelp; |   SignatureHelp ls_sighelp; | ||||||
|   SignatureHelpConsumer(const clang::CodeCompleteOptions &CCOpts, |   SignatureHelpConsumer(const clang::CodeCompleteOptions &Opts, | ||||||
|                         bool from_cache) |                         bool from_cache) | ||||||
|       : CodeCompleteConsumer(CCOpts, false), |       : | ||||||
|  | #if LLVM_VERSION_MAJOR >= 9 // rC358696
 | ||||||
|  |         CodeCompleteConsumer(Opts), | ||||||
|  | #else | ||||||
|  |         CodeCompleteConsumer(Opts, false), | ||||||
|  | #endif | ||||||
|         Alloc(std::make_shared<GlobalCodeCompletionAllocator>()), |         Alloc(std::make_shared<GlobalCodeCompletionAllocator>()), | ||||||
|         CCTUInfo(Alloc), from_cache(from_cache) {} |         CCTUInfo(Alloc), from_cache(from_cache) {} | ||||||
|   void ProcessOverloadCandidates(Sema &S, unsigned CurrentArg, |   void ProcessOverloadCandidates(Sema &S, unsigned CurrentArg, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user